/*
 * Da Vat Hy Lures — Phase 23C.2
 * Today Dashboard Simplification
 *
 * Today summarises. Tabs/actions own the detail.
 */

/* ===============================================================
   RETURNING TODAY — answer first
   =============================================================== */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21y1-dashboard{
  padding-bottom:22px!important;
}

/* Fishing picture is now the first dashboard section after Scout. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21y1-today{
  margin-top:0!important;
  margin-bottom:0!important;
}

body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21y1-actions{
  margin-top:0!important;
  padding-top:16px!important;
  border-top:1px solid rgba(12,47,37,.10)!important;
}

/* Waters/Profile are still present and reachable, but do not lengthen Today. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c2-secondary-home{
  display:none!important;
}

body.dvh21p2-returning:not(.dvh23b7-fi-focused) #my-waters:target,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-more:target{
  display:block!important;
  margin-top:18px!important;
}

/* History already has its own top-level tab/page; no duplicate history block on Today. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23b3-my-fishing{
  display:none!important;
}

/* Deep tools do not show teaser/summary bars until the angler explicitly opens them. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) details.dvh21y1-deep:not([open]){
  display:none!important;
}

/* Old at-a-glance/account duplication is removed from the initial Today surface. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>.dvh21m-dashboard-head,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>.dvh21m-glance-grid,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>.dvh21u1-teaser,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>.dvh21m2-commercial,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>#document-centre,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>.dvh21m-shortcuts,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21m5-account,
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-profile{
  display:none!important;
}

/* Keep one recent-activity route available below the short dashboard when present. */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview>#pocket-activity{
  display:none!important;
}

.dvh23c2-recent{
  width:100%;
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(220px,.55fr) minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin:16px 0 0;
  padding:10px 14px;
  border-top:1px solid rgba(12,47,37,.10);
  border-bottom:1px solid rgba(12,47,37,.10);
  background:#fffdf8;
  color:#0b392d;
  text-decoration:none;
}

.dvh23c2-recent span{display:grid;gap:2px}
.dvh23c2-recent small{
  color:#b77b12;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.dvh23c2-recent strong{font-size:.75rem}
.dvh23c2-recent em{
  color:#68756f;
  font-size:.64rem;
  font-style:normal;
  line-height:1.35;
}
.dvh23c2-recent b{font-size:1rem;color:#0b4a37}

@media(max-width:700px){
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21y1-dashboard{
    padding-bottom:16px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh21y1-actions{
    padding-top:12px!important;
  }

  .dvh23c2-recent{
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px 10px;
    margin-top:12px;
    padding:9px 10px;
  }
  .dvh23c2-recent em{
    grid-column:1/-1;
    font-size:.61rem;
  }
  .dvh23c2-recent b{grid-column:2;grid-row:1}
}


/* ===============================================================
   Phase 23C.2A — Empty Today Wrapper Cleanup
   =============================================================== */

/*
 * 23C.2 hides the old at-a-glance/dashboard content on returning Today,
 * but the #pocket-overview shell can still retain its legacy card
 * padding / border / background. Neutralise only that outer shell so an
 * empty dashboard collapses completely. Any explicitly opened child tool
 * continues to render with its own component styling.
 */
body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview{
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* ===============================================================
   Phase 23C.2B — Verified Empty Wrapper Collapse
   =============================================================== */

body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-overview > [hidden]{
  display:none!important;
}
