/* home-nest v15 — one shared edge-to-edge photographic background treatment.
   Dashboard and the three functional pages now use the same sharp photograph,
   blurred continuation and gentle fading into the application background. */

/* The mobile/desktop masthead floats over the image instead of taking up its own bar. */
.main-column:has(.page-stage.has-cover) {
  position: relative;
}
.main-column:has(.page-stage.has-cover) .topbar {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.main-column:has(.page-stage.has-cover) .topbar-right {
  pointer-events: auto;
}
.main-column:has(.page-stage.has-cover) .topbar-crumb,
.main-column .topbar-crumb {
  display: none !important;
}
.main-column:has(.page-stage.has-cover) .today-pill {
  color: #fff;
  text-shadow: 0 1px 12px #001b1d7a;
}
.main-column:has(.page-stage.has-cover) .profile-tiny .avatar {
  border: 2px solid #fff;
  box-shadow: 0 3px 16px #081f2438;
}
.main-column:has(.page-stage.has-cover) .view {
  padding: 0 0 96px;
  max-width: none;
  overflow: hidden;
}

.page-stage.has-cover {
  position: relative;
  isolation: isolate;
  max-width: none;
  padding-bottom: 12px;
  overflow: visible;
}

/* Identical blurred photographic continuation as Home. */
.page-stage.has-cover::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  left: 0;
  right: 0;
  width: 100%;
  height: 790px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-image:
    linear-gradient(180deg,rgba(10,27,30,.45) 0%,rgba(14,43,45,.44) 55%,rgba(248,247,244,.12) 100%),
    var(--cover-image);
  background-size: cover, cover;
  background-position: center, center center;
  background-repeat: no-repeat;
  filter: blur(26px);
  transform: scale(1.06);
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 43%,#000a 68%,transparent 97%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 43%,#000a 68%,transparent 97%);
  pointer-events: none;
}

/* Native-aspect-ratio sharp top photograph (replaces the old white fade strip). */
.page-stage.has-cover::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100vw * .44);
  max-height: 650px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-image:
    linear-gradient(180deg,rgba(8,29,32,.53),rgba(9,37,40,.23) 58%,rgba(15,40,43,.07)),
    var(--cover-image);
  background-size: 100% 100%, 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  filter: none;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 53%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 53%,transparent 100%);
  pointer-events: none;
}

/* Headline is laid directly over the photograph, without a separate 'card'. */
.page-stage.has-cover > .headline-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  margin: 0 auto 24px;
  padding: 124px clamp(24px,4.3vw,68px) 38px;
  min-height: 340px;
  max-width: 1460px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-stage.has-cover > .headline-row h1,
.page-stage.has-cover > .headline-row .accent,
.page-stage.has-cover > .headline-row .eyebrow,
.page-stage.has-cover > .headline-row .headline-desc {
  color: #fff !important;
  text-shadow: 0 2px 15px #0c1b1966;
}
.page-stage.has-cover > .headline-row .eyebrow {
  opacity: .93;
}
.page-stage.has-cover > .headline-row .headline-desc {
  opacity: .96;
}
.page-stage.has-cover > .headline-row .btn-primary {
  background: rgba(255,255,255,.94);
  color: #345449;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 12px 24px #0a1b1a26;
}

/* Keep the calendar/lists centered while their photographic canvas is full-width. */
.page-stage.page-stage-wide.has-cover > .calendar-layout {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 clamp(24px,4.3vw,68px);
}
.content-wide.page-stage.has-cover > .section-card,
.content-wide.page-stage.has-cover > .toolbar {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2 * clamp(24px,4.3vw,68px));
}
.content-wide.page-stage.has-cover > .toolbar {
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width:700px) {
  .main-column:has(.page-stage.has-cover) .topbar {
    height: 74px;
    padding: 0 20px;
  }
  .main-column:has(.page-stage.has-cover) .topbar-right { gap: 13px; }
  .main-column:has(.page-stage.has-cover) .today-pill { font-size: 12px; gap: 7px; }
  .main-column:has(.page-stage.has-cover) .today-pill svg { width: 17px; height: 17px; }
  .main-column:has(.page-stage.has-cover) .profile-tiny .avatar { width:39px; height:39px; font-size:13px; }
  .main-column:has(.page-stage.has-cover) .view { padding:0 0 112px; }
  .page-stage.has-cover::before {
    height: 700px;
    background-position: center, center top;
    filter: blur(20px);
  }
  .page-stage.has-cover::after {
    height: 44vw;
    max-height: none;
  }
  .page-stage.has-cover > .headline-row {
    display: block;
    min-height: 322px;
    margin: 0 auto 18px;
    padding: 115px 20px 52px;
  }
  .page-stage.has-cover > .headline-row h1 {
    font-size: clamp(30px,8.5vw,39px);
    line-height: 1.15;
    margin: 23px 0 13px;
    letter-spacing: -.058em;
  }
  .page-stage.has-cover > .headline-row .eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
  }
  .page-stage.has-cover > .headline-row .headline-desc {
    font-size: 13px;
    line-height: 1.5;
  }
  .page-stage.has-cover > .headline-row .btn-primary {
    position: absolute;
    right: 20px;
    top: 112px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 18px;
  }
  .page-stage.has-cover > .headline-row .btn-primary svg { width:24px; height:24px; }
  .page-stage.has-cover > .headline-row .btn-primary .button-label { display:none; }
  .page-stage.page-stage-wide.has-cover > .calendar-layout { padding:0 18px; }
  .content-wide.page-stage.has-cover > .section-card,
  .content-wide.page-stage.has-cover > .toolbar {
    width: calc(100% - 36px);
  }
}
@media (max-width:370px) {
  .page-stage.has-cover > .headline-row { padding: 112px 16px 43px; }
  .page-stage.page-stage-wide.has-cover > .calendar-layout { padding: 0 12px; }
  .content-wide.page-stage.has-cover > .section-card,
  .content-wide.page-stage.has-cover > .toolbar { width:calc(100% - 24px); }
}
@media (min-width:701px) {
  .page-stage.has-cover::after { height:calc((100vw - 245px)*.44); }
}
@media (prefers-reduced-transparency:reduce) {
  .page-stage.has-cover::before { filter:none; }
}
