/* Home stays inside the lower-right footer, directly above news navigation. */
.team.is-board #team-board { position: relative; }
.team .duvy-nest {
  --nest-art-base: .94;
  position: absolute;
  z-index: 4;
  display: block;
  width: var(--nest-size, 98px);
  min-height: 0;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  appearance: none;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  transform: translateX(-50%);
  visibility: hidden;
  pointer-events: auto;
  user-select: none;
}
.team .duvy-nest[hidden], .team:not(.is-board) .duvy-nest { display: none !important; }
.team.is-board .duvy-nest[data-placed='true'] { visibility: visible; }
.team .duvy-nest-label {
  display: block;
  width: max-content;
  margin: -7px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--duv-blue-action, #287ab8);
  font-family: inherit;
  font-size: 8px;
  font-weight: 650;
  line-height: 12px;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 1px 2px #ffffff;
  white-space: nowrap;
}
.team .duvy-nest-art {
  position: relative; display: block; width: 100%; pointer-events: none;
  transform: translateY(-7px); transform-origin: 50% 78%;
  transition: transform 210ms ease;
}
.team .duvy-nest:hover .duvy-nest-art,
.team .duvy-nest:focus-visible .duvy-nest-art { transform: translateY(-7px) scale(1.08); }
.team .duvy-nest:active .duvy-nest-art,
.team .duvy-nest.is-chirping .duvy-nest-art { transform: translateY(-7px) scale(1.12); }
.team .duvy-nest-art[hidden] { display: none; }
.team .duvy-nest-art > img { display: block; width: 100%; height: auto; margin: 0; transition: filter 180ms ease; }
.team .duvy-nest.is-active .duvy-nest-art > img { filter: drop-shadow(0 0 8px #55a9dc50); }
.team .duvy-nest.is-active .duvy-nest-label { color: var(--duv-blue-action, #287ab8); }
.team .duvy-nest:hover .duvy-nest-label { color: var(--duv-blue-active, #235f8b); }
.team .duvy-nest:focus-visible { outline: 2px solid #84b5d5; outline-offset: 3px; border-radius: 16px; }
.team .duvy-nest.is-fallback .duvy-nest-label { margin: 0 auto; padding: 12px; }
.team #duvy-nest .duvy-news-count { top: 0; right: 0; }
.team #duvy-nest.is-fallback .duvy-news-count { top: -8px; right: -8px; }
.team .duvy-nest-eyes {
  position: absolute;
  left: 26.5%;
  top: 55%;
  display: flex;
  width: 13.5%;
  height: 8.7%;
  gap: 13%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.team .duvy-nest-eye {
  position: relative;
  display: block;
  flex: 1 1 0;
  height: 100%;
  border-radius: 50%;
  background: #f2e8d4;
  box-shadow: inset 0 -1px 1px #c5b79866;
  transform: scaleY(1);
  transition: transform 85ms ease;
}
.team .duvy-nest-eye::before {
  content: '';
  position: absolute;
  top: 24%;
  left: 45%;
  width: 38%;
  height: 57%;
  border-radius: 50%;
  background: #287ab8;
}
.team .duvy-nest-eye::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 65%;
  width: 14%;
  height: 18%;
  border-radius: 50%;
  background: #fff9ea;
}
.team .duvy-nest.is-peeking .duvy-nest-eyes { opacity: 1; }
.team .duvy-nest.is-blinking .duvy-nest-eye { transform: scaleY(.12); }

/* The entire work area belongs to the news; Home has its own footer column. */
.team.is-board .portal-work-frame { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; }
.team.is-board .portal-work-frame > .portal-body { flex: 1 1 auto; min-height: 0; }
.team.is-board #team-board.has-duvy-nest .portal-work-frame { padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .team .duvy-nest-art { transition: none; }
  .team .duvy-nest-eyes { display: none; transition: none; }
  .team .duvy-nest-eye { transition: none; }
  .team .duvy-nest-art > img { transition: none; }
}
.wallpaper-paused .duvy-nest-eyes { opacity: 0; transition: none; }

/* The footer matches the measured header. Mascots may rise over its top edge;
   all text and controls stay in their own columns. */
.team.is-board #team-board.has-duvy-nest {
  --nest-size:clamp(63px,6.3vw,98px);
  --nest-footer-height:64px;
  --nest-footer-left:130px;
  --nest-nav-width:124px;
  --nest-nav-height:28px;
  --nest-nav-bottom:2px;
}
.team.is-board #team-board.has-duvy-nest .board-footer {
  position:relative; display:block; flex:0 0 var(--nest-footer-height);
  height:var(--nest-footer-height); min-height:var(--nest-footer-height);
  max-height:var(--nest-footer-height); margin-top:8px; padding:0;
}
.team.is-board #team-board.has-duvy-nest .board-footer-info,
.team.is-board #team-board.has-duvy-nest .board-build,
.team.is-board #team-board.has-duvy-nest .board-message,
.team.is-board #team-board.has-duvy-nest .board-message .message { display:contents; }
.team.is-board #team-board.has-duvy-nest .board-footer #policies-open {
  position:absolute; left:var(--nest-footer-left); top:0; margin:0;
  padding:6px 10px; font-size:11px; line-height:1.3;
}
.team.is-board #team-board.has-duvy-nest .board-revision,
.team.is-board #team-board.has-duvy-nest .board-credit {
  position:absolute; left:var(--nest-footer-left); width:225px;
  margin:0; font-size:9px; line-height:1.3;
}
.team.is-board #team-board.has-duvy-nest .board-revision { top:32px; }
.team.is-board #team-board.has-duvy-nest .board-credit { top:46px; }
.team.is-board #team-board.has-duvy-nest .board-message .signature {
  position:absolute; left:50%; top:50%; width:150px; max-width:none;
  height:auto; margin:0; transform:translate(-50%,-50%);
}
.team.is-board #team-board.has-duvy-nest .board-message .phrase {
  position:absolute; display:block; left:calc(50% + 105px); right:145px;
  top:50%; width:auto; height:4.2em; min-width:0; max-width:none; margin:0;
  transform:translateY(-50%); font-size:11px; line-height:1.4;
  text-align:left; text-wrap:balance; overflow-wrap:anywhere;
  align-content:center;
}
.team.is-board #team-board.has-duvy-nest .board-message .phrase-author { font-size:.82em; }
.team.is-board #team-board.has-duvy-nest .board-footer .news-nav {
  position:absolute; top:auto; right:0; bottom:var(--nest-nav-bottom);
  width:var(--nest-nav-width); height:var(--nest-nav-height);
  gap:10px; justify-content:center;
}
.team.is-board #team-board.has-duvy-nest .board-footer .news-nav button {
  width:var(--nest-nav-height); height:var(--nest-nav-height);
}
@media(max-width:1200px) {
  .team.is-board #team-board.has-duvy-nest { --nest-footer-left:112px; }
}
@media(max-width:1000px) {
  .team.is-board #team-board.has-duvy-nest {
    --nest-footer-left:96px; --nest-nav-width:110px; --nest-nav-height:27px;
  }
  .team.is-board #team-board.has-duvy-nest .board-message .signature {
    top:2px; width:110px; transform:translateX(-50%);
  }
  .team.is-board #team-board.has-duvy-nest .board-revision,
  .team.is-board #team-board.has-duvy-nest .board-credit { width:125px; font-size:8px; }
  .team.is-board #team-board.has-duvy-nest .board-message .phrase {
    left:230px; right:120px; top:auto; bottom:0; height:36px;
    transform:none; font-size:9px; line-height:12px; text-align:center;
  }
}
@media(max-width:850px) {
  .team.is-board #team-board.has-duvy-nest { --nest-size:56px; }
  .team.is-board #team-board.has-duvy-nest .welcome-copy {
    position:relative; inset:auto; min-height:330px; height:auto;
    justify-content:flex-start; background:none;
  }
  .team.is-board #team-board.has-duvy-nest .welcome-shade {
    background:linear-gradient(0deg,#0b2339 0%,#102c43d9 43%,transparent 100%),linear-gradient(90deg,#0b2339 0%,#102c4380 50%,transparent 100%);
  }
}
@media(min-width:851px) and (max-aspect-ratio:4/5) {
  .team.is-board #team-board.has-duvy-nest .welcome-photo {
    width:100%; height:72%; object-position:70% 13%;
    mask-image:linear-gradient(#000 76%,transparent 100%);
  }
  .team.is-board #team-board.has-duvy-nest .welcome-shade {
    background:linear-gradient(0deg,#0b2339 0%,#102c43 23%,#102c4300 55%);
  }
  .team.is-board #team-board.has-duvy-nest .welcome-copy {
    top:auto; bottom:0; padding:44px; background:none;
  }
  .team.is-board #team-board.has-duvy-nest .welcome-copy h2,
  .team.is-board #team-board.has-duvy-nest #welcome-message { width:100%; max-width:850px; }
}
@media(max-width:550px) {
  .team.is-board #team-board.has-duvy-nest {
    --nest-nav-width:86px; --nest-nav-height:24px; --nest-nav-bottom:46px;
  }
  .team.is-board #team-board.has-duvy-nest .board-message .signature { width:85px; top:2px; }
  .team.is-board #team-board.has-duvy-nest .board-footer #policies-open {
    left:96px; top:34px; width:85px; max-width:none; padding:5px;
    font-size:10px; white-space:nowrap; transform:none;
  }
  .team.is-board #team-board.has-duvy-nest .board-revision,
  .team.is-board #team-board.has-duvy-nest .board-credit { left:96px; width:86px; right:auto; font-size:7px; }
  .team.is-board #team-board.has-duvy-nest .board-revision { top:61px; }
  .team.is-board #team-board.has-duvy-nest .board-credit { top:75px; }
  .team.is-board #team-board.has-duvy-nest .board-message .phrase {
    left:96px; right:0; bottom:0; height:34px; font-size:8px; line-height:10.5px;
  }
  .team.is-board #team-board.has-duvy-nest .board-footer .news-nav { gap:4px; }
}

/* Nine compact area commands: one icon and one short label, side by side. */
.team.is-board #team-board .area-tabs { grid-template-columns:repeat(9,minmax(0,1fr)); }
@media(max-width:1200px),(max-aspect-ratio:1/1) {
  .team.is-board #team-board .area-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .team.is-board #team-board .area-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .team.is-board #team-board .area-tab { min-height:35px; padding:6px 7px; gap:5px; font-size:8px; }
}
