/* Calken v125: the curved dock. Same tabs, icons and order as v124: only the shape changes.
   Laptop and tablet: the rail becomes a black dock joined to the left edge of the screen by concave curves.
   Phone: the bottom tab bar becomes a black dock joined to the bottom edge the same way. */
:root{--ckd-f:24px;--ckd-gapc:16px;--ckd-off:calc(var(--t-gap) + var(--t-card-r) + var(--ckd-gapc) + var(--ckd-f))}
/* the dock starts below the page card's rounded corner, with a short straight edge between the corner and the dock's curve */

@media (min-width:761px){
  html body:not(.vt-open) header.site{left:var(--t-gap);top:var(--ckd-off);bottom:var(--ckd-off);width:var(--t-rail-w);border:0;border-radius:0 calc(var(--t-rail-w) / 2) calc(var(--t-rail-w) / 2) 0;overflow:visible}
  /* the dock is the same colour as the frame around the page, so it reads as part of it (glass: plain black) */
  html{--ckd-c:var(--t-frame);--ckd-bg:var(--ckd-c)}
  /* Glass: like Light and Dark, the bezel (the frame round the page), the dock and the logo tab are one material:
     here the light frosted glass of v124's rail, over the week's photo */
  html.glass:not([data-theme=light]){--ckd-c:rgba(255,255,255,.14);--ckd-bg:rgba(255,255,255,.14)}
  html.glass:not([data-theme=light]) body:not(.vt-open) .tedge{background:#141416!important;overflow:hidden}
  html.glass:not([data-theme=light]) body:not(.vt-open) .tedge:before{content:"";position:absolute;inset:-60px;background:linear-gradient(#0000002e,#00000052),var(--glass-bg) center/cover no-repeat,#141416;filter:blur(34px) saturate(170%);-webkit-filter:blur(34px) saturate(170%)}
  html.glass:not([data-theme=light]) body:not(.vt-open) .tedge:after{content:"";position:absolute;inset:0;background:var(--ckd-bg)}
  html.glass:not([data-theme=light]) body:not(.vt-open) header.site,html.glass:not([data-theme=light]) body:not(.vt-open) header.site:before,html.glass:not([data-theme=light]) body:not(.vt-open) header.site:after,html.glass:not([data-theme=light]) #ck-crest,html.glass:not([data-theme=light]) #ck-crest:before,html.glass:not([data-theme=light]) #ck-crest:after{-webkit-backdrop-filter:blur(34px) saturate(170%)!important;backdrop-filter:blur(34px) saturate(170%)!important}
  html body:not(.vt-open) header.site,
  html.glass:not([data-theme=light]) body:not(.vt-open) header.site,
  html[data-theme=light] body:not(.vt-open) header.site{background:var(--ckd-bg);border:0;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
  html body:not(.vt-open) header.site:before,html body:not(.vt-open) header.site:after{content:"";position:absolute;left:0;width:var(--ckd-f);height:var(--ckd-f);pointer-events:none}
  html body:not(.vt-open) header.site:before{bottom:100%;background:var(--ckd-bg);-webkit-mask:radial-gradient(circle at 100% 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f));mask:radial-gradient(circle at 100% 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f))}
  html body:not(.vt-open) header.site:after{top:100%;background:var(--ckd-bg);-webkit-mask:radial-gradient(circle at 100% 100%,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f));mask:radial-gradient(circle at 100% 100%,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f))}
  /* Light: the frame, the dock and the logo tab turn light, with dark icons */
  html[data-theme=light]{--t-frame:#e2e3e7}
  html[data-theme=light] body:not(.vt-open) header.site nav.primary>a:not(.active),html[data-theme=light] body:not(.vt-open) header.site nav.primary .nav-dd:not(.has-active) .nav-dd-btn,html[data-theme=light] body:not(.vt-open) header.site .theme-toggle,html[data-theme=light] body:not(.vt-open) header.site .cur-ic{color:#34363c}
  html[data-theme=light] body:not(.vt-open) header.site nav.primary>a:not(.active):hover,html[data-theme=light] body:not(.vt-open) header.site nav.primary .nav-dd-btn:hover,html[data-theme=light] body:not(.vt-open) header.site .theme-toggle:hover,html[data-theme=light] body:not(.vt-open) header.site .cur-ic:hover{background:#0000000f;color:#000}
  html[data-theme=light] body:not(.vt-open) header.site #account-link{background:#0000000d}
  html[data-theme=light] body:not(.vt-open) header.site nav.primary>a.active,html[data-theme=light] body:not(.vt-open) header.site .nav-dd.has-active .nav-dd-btn{background:#0b0c0e;color:#fff}
  html[data-theme=light] .tframe{box-shadow:0 0 0 200vmax var(--t-frame),inset 0 0 0 1px #0000000d}
  /* the page card reaches the edge of the frame, and the dock bends into it */
  html:not(.glass) body:not(.vt-open),html[data-theme=light] body:not(.vt-open){background:var(--bg)}
  html body:not(.vt-open) .tframe,html.glass:not([data-theme=light]) body:not(.vt-open) .tframe{left:var(--t-gap)}
  html.glass:not([data-theme=light]) body:not(.vt-open) .tedge{--L:var(--t-gap)}
  html.glass:not([data-theme=light]) body:not(.vt-open) .tframe:before{left:calc(-1 * var(--t-gap))}
}
@media (min-width:761px) and (max-height:820px){:root{--ckd-f:20px;--ckd-gapc:10px}}
@media (min-width:761px) and (max-height:700px){:root{--ckd-f:16px;--ckd-gapc:6px}}

@media (max-width:760px){
  /* phone: the bottom tab bar becomes the dock, in each theme's material (Dark: black, Light: light grey, Glass: frosted) */
  html{--ckp-bg:#000}
  html[data-theme=light]{--ckp-bg:#e2e3e7}
  html.glass:not([data-theme=light]){--ckp-bg:rgba(255,255,255,.14)}
  html .tabbar,html.glass .tabbar,html[data-theme=light] .tabbar{left:var(--ckd-f);right:var(--ckd-f);bottom:0;max-width:440px;margin:0 auto;border:0;border-radius:34px 34px 0 0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--ckp-bg);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;overflow:visible}
  html .tabbar:before,html .tabbar:after{content:"";position:absolute;bottom:0;width:var(--ckd-f);height:var(--ckd-f);pointer-events:none;background:var(--ckp-bg)}
  html .tabbar:before{right:100%;-webkit-mask:radial-gradient(circle at 0 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f));mask:radial-gradient(circle at 0 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f))}
  html .tabbar:after{left:100%;-webkit-mask:radial-gradient(circle at 100% 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f));mask:radial-gradient(circle at 100% 0,transparent calc(var(--ckd-f) - .5px),#000 var(--ckd-f))}
  html.glass:not([data-theme=light]) .tabbar,html.glass:not([data-theme=light]) .tabbar:before,html.glass:not([data-theme=light]) .tabbar:after{-webkit-backdrop-filter:blur(30px) saturate(170%);backdrop-filter:blur(30px) saturate(170%)}
  html:not([data-theme=light]) .tabbar a{color:#c9cacf}
  html[data-theme=light] .tabbar a{color:#34363c}
}

/* phone: the classic "Calken" script, centred in the top bar, in the version that matches the theme
   (the site already swaps it: dark script on Light, light script on Dark and Glass) */
@media (max-width:760px){
  html #ab-logo{position:absolute;left:50%;top:calc(env(safe-area-inset-top) + 28px);transform:translate(-50%,-50%);margin:0!important;display:flex;align-items:center}
  html #ab-logo .ab-crest{display:none!important}
  html #ab-logo #ab-logo-img{display:block!important;height:30px;width:auto}
}

/* tablet and laptop: the logo in a curved tab at the top centre, and nowhere else */
#ck-crest{display:none}
@media (min-width:761px){
  html body:not(.vt-open):not(.client-flow) #ck-crest{display:flex;position:fixed;z-index:61;top:var(--t-gap);left:calc(50% - 110px);width:220px;align-items:center;justify-content:center;height:44px;padding:0 34px;box-sizing:border-box;background:var(--ckd-bg);border-radius:0 0 28px 28px;text-decoration:none}
  html #ck-crest:before,html #ck-crest:after{content:"";position:absolute;top:0;width:24px;height:24px;pointer-events:none;background:var(--ckd-bg)}
  html #ck-crest:before{right:100%;-webkit-mask:radial-gradient(circle at 0 100%,transparent 23.5px,#000 24px);mask:radial-gradient(circle at 0 100%,transparent 23.5px,#000 24px)}
  html #ck-crest:after{left:100%;-webkit-mask:radial-gradient(circle at 100% 100%,transparent 23.5px,#000 24px);mask:radial-gradient(circle at 100% 100%,transparent 23.5px,#000 24px)}
  html #ck-crest img{display:block;height:36px;width:auto;margin-top:calc(-1 * var(--t-gap) - 2px);transition:opacity .2s}
  html #ck-crest .ck-dark{display:none}
  html[data-theme=light] #ck-crest .ck-light{display:none}
  html[data-theme=light] #ck-crest .ck-dark{display:block}
  html #ck-crest:hover img{opacity:.8}
  /* room for the tab above the page */
  html body:not(.vt-open) #app{padding-top:30px}
  /* the chrome badge at the top of the dock and the footer logo give way to the tab */
  html body header.site .logo-link{display:none!important}
  html footer.site .ftr-brand .brand-mark{display:none}
}
@media (max-width:760px){html footer.site .ftr-brand .brand-mark{display:none}}
body.vt-open #ck-crest,body.client-flow #ck-crest{display:none!important}
/* Glass: the page card is set apart by its darker glass alone, so the outline that used to run under the dock goes */
@media (min-width:761px){html.glass:not([data-theme=light]) body:not(.vt-open) .tframe{box-shadow:none!important}}
/* the logo tucks into the bezel while scrolling down, and returns on scrolling up */
#ck-crest{transform-origin:50% 0;transition:transform .55s cubic-bezier(.65,0,.35,1) .05s}
#ck-crest img{transition:opacity .3s ease .28s,transform .45s cubic-bezier(.65,0,.35,1) .18s!important}
html.ck-tuck #ck-crest{transform:scaleY(0);pointer-events:none;transition:transform .5s cubic-bezier(.65,0,.35,1) .1s}
html.ck-tuck #ck-crest img{opacity:0!important;transform:translateY(-10px) scale(.92);transition:opacity .22s ease,transform .35s cubic-bezier(.65,0,.35,1)!important}
@media (max-width:760px){
  html #ab-logo{transition:transform .5s cubic-bezier(.65,0,.35,1),opacity .35s ease}
  html.ck-tuck #ab-logo{transform:translate(-50%,-90%) scale(.9);opacity:0;pointer-events:none}
}
@media (prefers-reduced-motion:reduce){#ck-crest,html.ck-tuck #ck-crest,#ck-crest img,html #ab-logo{transition:opacity .2s!important}}
