/* The directory, hosted Planner and its sign-in entry share this banner. */
.masthead {
  box-sizing: border-box; position: relative; display: block; width: 100%; margin: 0; padding: 0;
  background: #fafaf8; border: 0; z-index: 6; box-shadow: none;
  color: #000; color-scheme: only light;
  font: 400 1rem/1.5 var(--qc-body, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
}
.masthead *, .masthead ::before, .masthead ::after { box-sizing: border-box; }
.masthead .mast-inner {
  position: relative; width: min(62rem, calc(100% - clamp(2rem, 9vw, 9rem))); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: clamp(.5rem, 2vw, 1.25rem);
  min-height: 3.5rem; padding-block: .2rem;
}
.masthead .identity {
  justify-self: start; min-width: 0; display: flex; align-items: center; gap: .75rem;
  color: #000; font-size: .9375rem; font-weight: var(--qc-ui-weight, 650); line-height: 1.2; text-decoration: none;
}
.masthead a.identity { min-height: 44px; }
.masthead .mark {
  position: relative; flex: none; width: 1.95rem; height: 1.95rem;
  background: #000; border-radius: .52rem; display: inline-block;
}
.masthead .mark::before { content: ""; position: absolute; inset: 21%; border: .13rem solid #fff; border-radius: 50%; }
.masthead .mark::after { content: ""; position: absolute; right: 16%; bottom: 22%; width: .55rem; height: .13rem; background: #fff; transform: rotate(44deg); }
.masthead .wordmark { margin: 0; justify-self: center; width: clamp(7.5rem, 18vw, 12rem); }
.masthead .wordmark img { display: block; width: 100%; height: auto; }
.masthead .support {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding-block: .7rem; font-size: .9375rem; font-weight: var(--qc-ui-weight, 400); color: #474946; text-decoration: none;
}
.masthead a:hover { text-decoration: underline; text-underline-offset: .25em; }
.masthead a:focus-visible { outline: 3px solid #5a6978; outline-offset: 3px; }
.masthead .support svg { display: none; width: 1.2rem; height: 1.2rem; }
@media (forced-colors: none) {
  .masthead[data-night] {
    background: #151619; color: #f7f7f5; color-scheme: dark; border-bottom-color: transparent;
  }
  .masthead[data-night] .wordmark img, .masthead[data-night] .mark { filter: invert(1); }
  .masthead[data-night] .identity { color: inherit; }
  .masthead[data-night] .support { color: #d5d7dc; }
  .masthead[data-night] a:focus-visible { outline-color: #dbe4f1; }
}

@media (forced-colors: active) {
  .masthead { color-scheme: light dark; }
  .masthead .mark { forced-color-adjust: none; background: CanvasText; }
  .masthead .mark::before { border-color: Canvas; }
  .masthead .mark::after { background: Canvas; }
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .masthead .wordmark img { filter: invert(1); }
}
@media (max-width: 45rem), (pointer: coarse) and (max-height: 32rem) {
  .masthead { padding-top: env(safe-area-inset-top); }
  .masthead .mast-inner {
    width: auto;
    margin-left: max(clamp(1rem, 4.6vw, 2rem), env(safe-area-inset-left));
    margin-right: max(clamp(1rem, 4.6vw, 2rem), env(safe-area-inset-right));
  }
}
@media (max-width: 40rem) {
  .masthead .mast-inner { min-height: 3.25rem; }
  .masthead .identity { gap: .4rem; font-size: .82rem; }
  .masthead .support { min-width: 44px; }
  .masthead .support svg { display: block; }
  .masthead .support-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 30rem) { .masthead .mark { display: none; } }
@media (max-width: 25rem) {
  .masthead .wordmark { width: clamp(6.25rem, 30vw, 7.5rem); }
}
@media (max-width: 21.25rem) {
  .masthead .identity { width: 44px; min-height: 44px; justify-content: center; gap: 0; font-size: 0; }
  .masthead .identity .mark { display: block; width: 1.6rem; height: 1.6rem; }
}

#banner-stripes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
#banner-sky {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  animation: sky-appear 8s ease-in-out infinite;
}
#banner-sky .sky-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgb(225 230 240 / 19%), rgb(225 230 240 / 7%) 12%, transparent 31%,
    transparent 69%, rgb(225 230 240 / 7%) 88%, rgb(225 230 240 / 19%));
}
#banner-sky svg { position: absolute; display: block; fill: #f1f2f5; }
#banner-stripes[hidden], #banner-stripes [hidden] { display: none; }
@keyframes sky-appear {
  0%, 85%, 100% { opacity: 0; }
  29%, 48% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #banner-sky { animation: none; opacity: 0; }
}
@media (forced-colors: active) { #banner-stripes { display: none; } }

.masthead .mast-tools { justify-self:end; display:flex; align-items:center; gap:clamp(.15rem,1.1vw,.85rem); }
.masthead .qc-account-bar, .masthead .qc-account, .masthead .qc-account-menu form {
  position:relative; margin:0; padding:0; border:0; background:transparent; box-shadow:none;
}
.masthead .qc-account summary {
  list-style:none; display:flex; align-items:center; justify-content:center; gap:.38rem;
  padding:0 .65rem; min-height:36px; border-radius:999px;
  color:inherit; background:rgb(110 115 124 / 9%); font:inherit; font-size:.89rem;
  font-weight:600; cursor:pointer; white-space:nowrap;
}
.masthead .qc-account summary::-webkit-details-marker { display:none; }
.masthead .qc-account summary svg { width:1rem; height:1rem; }
.masthead .qc-account summary::after {
  content:""; width:.34rem; height:.34rem; border:solid currentColor; border-width:0 1px 1px 0;
  transform:translateY(-1px) rotate(45deg); margin-inline-start:.08rem;
}
.masthead .qc-account[open] summary::after { transform:translateY(1px) rotate(225deg); }
.masthead .qc-account-menu {
  position:absolute; z-index:3; inset-inline-end:0; top:calc(100% + .35rem); min-width:10rem;
  padding:.3rem; border:1px solid rgb(128 128 128 / 28%); border-radius:.8rem;
  background:#fafaf8; color:#232428; box-shadow:0 .5rem 1.4rem rgb(0 0 0 / 14%);
}
.masthead[data-night] .qc-account-menu { background:#24252a; color:#f4f4f2; }
.masthead .qc-account-menu :is(a,button) {
  display:flex; align-items:center; width:100%; min-height:40px; padding:.35rem .65rem;
  background:transparent; border:0; border-radius:.5rem; color:inherit; cursor:pointer;
  font:inherit; font-size:.9rem; text-align:start; text-decoration:none;
}
.masthead .qc-account summary:hover, .masthead .qc-account-menu :is(a,button):hover { background:rgb(128 128 128 / 16%); }
.masthead :is(summary,button,a):focus-visible { outline:2px solid currentColor; outline-offset:2px; }
@media(max-width:50rem){
  .masthead .mast-tools .support { width:44px; }
  .masthead .mast-tools .support svg { display:block; }
  .masthead .mast-tools .support-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media(max-width:35rem){
  .masthead .mast-inner { column-gap:.25rem; }
  .masthead .mast-tools { gap:0; }
  .masthead .qc-account summary { width:44px; height:44px; padding:0; background:transparent; }
  .masthead .qc-account summary svg { width:1.2rem; height:1.2rem; }
  .masthead .qc-account summary span, .masthead .qc-account summary::after { display:none; }
}
@media(pointer:coarse){.masthead .qc-account summary,.masthead .qc-account-menu :is(a,button){min-height:44px}}
#edge-track {
  position:absolute; bottom:0; inset-inline:0; height:5px; overflow:hidden; pointer-events:none;
  background:linear-gradient(to bottom, transparent, rgb(0 0 0 / 6%) 52%, rgb(0 0 0 / 29%));
}
.masthead[data-night] #edge-track { background:linear-gradient(to bottom,transparent,rgb(0 0 0 / 35%) 52%,rgb(0 0 0 / 80%)); }
#edge-runner { position:absolute; inset:auto 0 0; height:3px; background:#000; opacity:0; transform-origin:center; }
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){
  #edge-runner.reflect { animation:banner-edge 3.8s cubic-bezier(.4,0,.2,1) both; }
}
@keyframes banner-edge {
  0% { opacity:0; transform:scaleX(.04); }
  54%,68% { opacity:1; transform:scaleX(1); }
  100% { opacity:0; transform:scaleX(1); }
}
@media(forced-colors:active){ #edge-track { height:1px; background:CanvasText; } }
