/*
 * Da Vat Hy Lures — Phase 23B.8D.5
 * Unified Welcome + Scout + Heading Normalisation
 *
 * Signed-in My Tackle Box only. Merge the greeting and Scout welcome into
 * one useful top section, reduce repeated UI, and normalise mobile headings.
 */

body.dvh23b2-pocket-shell .dvh23b8d5-unified-welcome{
  position:relative;
  min-height:196px;
  display:grid!important;
  grid-template-columns:130px minmax(0,1fr) minmax(340px,.74fr);
  gap:24px;
  align-items:center;
  margin:0!important;
  padding:24px min(4vw,54px)!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(112deg,#06452f 0%,#084d38 56%,#315e3d 100%)!important;
  color:#fff!important;
  overflow:hidden;
}

body.dvh23b2-pocket-shell .dvh23b8d5-unified-welcome::after{
  content:"";
  position:absolute;
  right:-110px;
  bottom:-185px;
  width:390px;
  height:390px;
  border:1px solid rgba(230,168,33,.20);
  border-radius:50%;
  pointer-events:none;
}

.dvh23b8d5-scout-visual{
  position:relative;
  width:126px;
  height:150px;
  align-self:end;
  z-index:1;
}

.dvh23b8d5-scout-visual img{
  position:absolute;
  left:50%;
  bottom:-24px;
  width:auto;
  height:178px;
  max-width:none;
  transform:translateX(-50%);
  object-fit:contain;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.18));
}

.dvh23b8d5-welcome-copy{
  position:relative;
  z-index:1;
  min-width:0;
}

.dvh23b8d5-welcome-copy .eyebrow{
  color:#efb448!important;
}

body.dvh23b2-pocket-shell .dvh23b8d5-unified-welcome h1{
  margin:4px 0 7px!important;
  color:#fff!important;
  font-size:clamp(2.25rem,4vw,4rem)!important;
  line-height:.96!important;
  letter-spacing:-.022em!important;
}

.dvh23b8d5-status{
  margin:0 0 9px!important;
  color:rgba(255,255,255,.80)!important;
  font-size:.79rem!important;
  line-height:1.38!important;
}

.dvh23b8d5-scout-line{
  display:flex;
  flex-wrap:wrap;
  gap:4px 7px;
  margin:0!important;
  color:rgba(255,255,255,.78)!important;
  font-size:.72rem!important;
  line-height:1.4!important;
}

.dvh23b8d5-scout-line strong{
  color:#efb448;
}

.dvh23b8d5-help-actions{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  align-self:center;
}

.dvh23b8d5-help-actions button{
  min-height:42px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:5px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font:800 .68rem/1.15 Inter,Arial,sans-serif;
  cursor:pointer;
}

.dvh23b8d5-help-actions button:hover,
.dvh23b8d5-help-actions button:focus-visible{
  border-color:#efb448;
  background:rgba(255,255,255,.11);
}

.dvh23b8d5-help-actions .dvh23b8d5-ask{
  border-color:#e6a821;
  background:#e6a821;
  color:#10382e;
}

/* The old second Scout welcome is intentionally absent for signed-in Today. */
body.dvh23b2-pocket-shell .dvh23b8d5-unified-welcome + .dvh23b8b-scout-welcome{
  display:none!important;
}

/* -----------------------------------------------------------------
   Mobile: one combined welcome and one consistent major-heading scale.
   ----------------------------------------------------------------- */
@media(max-width:600px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome{
    min-height:0!important;
    grid-template-columns:62px minmax(0,1fr)!important;
    gap:9px 11px!important;
    padding:14px 16px 15px!important;
    overflow:visible!important;
  }

  .dvh23b8d5-scout-visual{
    width:60px!important;
    height:84px!important;
    align-self:end!important;
  }

  .dvh23b8d5-scout-visual img{
    bottom:-9px!important;
    height:96px!important;
    filter:drop-shadow(0 5px 7px rgba(0,0,0,.15))!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome h1{
    margin:2px 0 5px!important;
    font-size:clamp(1.55rem,7.4vw,1.86rem)!important;
    line-height:.98!important;
    white-space:nowrap!important;
  }

  .dvh23b8d5-welcome-copy .eyebrow{
    font-size:.54rem!important;
    letter-spacing:.09em!important;
  }

  .dvh23b8d5-status{
    margin-bottom:5px!important;
    font-size:.68rem!important;
    line-height:1.28!important;
  }

  .dvh23b8d5-scout-line{
    gap:2px 5px!important;
    font-size:.63rem!important;
    line-height:1.28!important;
  }

  .dvh23b8d5-scout-line strong{
    flex:0 0 auto;
  }

  .dvh23b8d5-help-actions{
    grid-column:1 / -1;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%;
    margin-top:2px;
  }

  .dvh23b8d5-help-actions button{
    min-width:0!important;
    min-height:38px!important;
    padding:8px 7px!important;
    font-size:.60rem!important;
    white-space:normal!important;
    text-align:center!important;
  }

  /* Consistent major section-heading scale on My Tackle Box Today. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused){
    --dvh23b8d5-section-heading:clamp(1.16rem,5.45vw,1.34rem);
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-titlebar h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today h3,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21m-dashboard-head h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) #fishing-conditions > .dvh21n-head h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21m5-account > .dvh21m5-account-head h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21b-profile-summary h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21d-alert-card h2{
    font-size:var(--dvh23b8d5-section-heading)!important;
    line-height:1.04!important;
    letter-spacing:-.012em!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-titlebar h2,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today h3,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21m-dashboard-head h2{
    white-space:nowrap!important;
  }
}

@media(max-width:360px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome h1{
    font-size:1.47rem!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused){
    --dvh23b8d5-section-heading:1.10rem;
  }
}


/* ===============================================================
   Phase 23B.8D.5A — Greeting Above Scout on Mobile
   =============================================================== */

body.dvh23b2-pocket-shell .dvh23b8d5-unified-welcome{
  grid-template-areas:"scout welcome actions"!important;
}

.dvh23b8d5-welcome-copy{
  grid-area:welcome;
}

.dvh23b8d5-scout-visual{
  grid-area:scout;
}

.dvh23b8d5-scout-line{
  grid-area:welcome;
  align-self:end;
  margin-top:92px!important;
  max-width:760px;
}

.dvh23b8d5-help-actions{
  grid-area:actions;
}

@media(max-width:600px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome{
    grid-template-columns:62px minmax(0,1fr)!important;
    grid-template-areas:
      "welcome welcome"
      "scout scoutcopy"
      "actions actions"!important;
    align-items:start!important;
    gap:7px 11px!important;
  }

  .dvh23b8d5-welcome-copy{
    grid-area:welcome;
    width:100%;
    min-width:0;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome h1{
    width:100%;
    max-width:none!important;
    white-space:nowrap!important;
  }

  .dvh23b8d5-status{
    max-width:100%!important;
    margin-bottom:3px!important;
  }

  .dvh23b8d5-scout-visual{
    grid-area:scout;
    align-self:end!important;
    margin-top:1px;
  }

  .dvh23b8d5-scout-line{
    grid-area:scoutcopy;
    align-self:center!important;
    display:block!important;
    margin:0!important;
    padding:3px 0 0!important;
    max-width:none!important;
  }

  .dvh23b8d5-scout-line strong{
    display:block!important;
    margin:0 0 2px!important;
  }

  .dvh23b8d5-scout-line span{
    display:block!important;
  }

  .dvh23b8d5-help-actions{
    grid-area:actions;
    margin-top:1px!important;
  }
}


/* ===============================================================
   Phase 23B.8D.5B — Mobile Section Heading Lock
   Simpler / shorter / consistent: major Today headings share one scale.
   =============================================================== */
@media(max-width:600px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused){
    --dvh23b8d5b-major-heading:1.12rem;
  }

  /* My Tackle Box Today — main decision heading */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-titlebar h2,
  /* Today for me + My fishing */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-section-head h3,
  /* My Waters */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-waters-head h3{
    margin-top:3px!important;
    margin-bottom:5px!important;
    font-size:var(--dvh23b8d5b-major-heading)!important;
    line-height:1.05!important;
    letter-spacing:-.012em!important;
    white-space:nowrap!important;
  }

  /* Do not let right-side links/status chips squeeze the heading width. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-section-head{
    align-items:flex-start!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-section-head > div{
    min-width:0!important;
    flex:1 1 auto!important;
  }

  /* The water heading gets the full line before selected-water details. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-waters-head{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:360px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused){
    --dvh23b8d5b-major-heading:1.04rem;
  }
}


/* ===============================================================
   Phase 23B.8D.5C — Desktop Welcome & Safe Compaction
   Video-reviewed desktop-only spacing refinement.
   No order, state, data or Fishing Intelligence behaviour changes.
   =============================================================== */
@media(min-width:901px){
  /* Unified welcome: give the greeting more width and reduce vertical weight. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome{
    min-height:168px!important;
    grid-template-columns:112px minmax(0,1.34fr) minmax(300px,.66fr)!important;
    gap:18px!important;
    padding:18px min(3.4vw,46px)!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-scout-visual{
    width:108px!important;
    height:132px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-scout-visual img{
    height:156px!important;
    bottom:-18px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome h1{
    margin:2px 0 4px!important;
    max-width:none!important;
    font-size:clamp(2.45rem,3.05vw,3.35rem)!important;
    line-height:.93!important;
    letter-spacing:-.024em!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-status{
    margin-bottom:0!important;
    font-size:.76rem!important;
    line-height:1.30!important;
  }

  /* One deliberate text line of breathing room below the status line. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-scout-line{
    margin-top:106px!important;
    font-size:.69rem!important;
    line-height:1.34!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-help-actions{
    gap:6px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-help-actions button{
    min-height:38px!important;
    padding:7px 9px!important;
    font-size:.65rem!important;
  }

  /* Safe desktop compaction from the screen-video review. These reduce only
     padding/min-heights; no controls, links or information are hidden. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-titlebar{
    padding-top:20px!important;
    padding-bottom:8px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-actions{
    padding-bottom:20px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-action{
    min-height:84px!important;
    padding:13px 17px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today{
    padding-top:19px!important;
    padding-bottom:20px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today-grid{
    margin-top:10px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today-grid>div{
    min-height:84px!important;
    padding:13px 18px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh21y1-today-actions{
    margin-top:10px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-my-waters{
    padding-top:21px!important;
    padding-bottom:22px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-chips{
    margin-top:8px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions{
    margin-top:10px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a{
    min-height:76px!important;
    padding:12px 18px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b3-my-fishing{
    padding-top:21px!important;
    padding-bottom:22px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b3-my-fishing-grid{
    margin-top:9px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b3-my-fishing-grid>a{
    min-height:82px!important;
    padding:13px 18px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b3-setup-fold>summary{
    min-height:60px!important;
    padding:14px 0!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b3-setup-content{
    padding-bottom:18px!important;
  }
}

/* Wide desktop: keep normal-length greetings on one line. At smaller desktop
   widths wrapping remains available rather than forcing overflow. */
@media(min-width:1280px){
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome h1{
    white-space:nowrap!important;
  }
}


/* ===============================================================
   Phase 23B.8D.5D — Desktop Home-Rhythm Re-anchor
   Home Page remains the visual reference: broad bands + contained actions.
   =============================================================== */

/* Selected-water action is useful on both desktop and mobile. */
body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-selected-water a{
  display:inline-flex!important;
  width:max-content!important;
  margin-top:5px!important;
  color:#0b5a43!important;
  font-size:.64rem!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
}
body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-selected-water a:hover,
body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-selected-water a:focus-visible{
  color:#9f6806!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
}

@media(min-width:901px){
  /* Welcome: Scout intro becomes a genuine second text row, rather than
     sharing the same grid cell with a large synthetic top margin. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-unified-welcome{
    min-height:174px!important;
    grid-template-columns:112px minmax(0,1.34fr) minmax(300px,.66fr)!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:
      "scout welcome actions"
      "scout scoutcopy actions"!important;
    column-gap:18px!important;
    row-gap:7px!important;
    align-items:center!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-welcome-copy{
    grid-area:welcome!important;
    align-self:end!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-scout-visual{
    grid-area:scout!important;
    align-self:end!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-scout-line{
    grid-area:scoutcopy!important;
    align-self:start!important;
    margin:0!important;
    padding-top:3px!important;
    max-width:820px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b8d5-help-actions{
    grid-area:actions!important;
    align-self:center!important;
  }

  /* My Waters: restore the Home Page rhythm without returning to heavy cards.
     The section stays full-width and warm; only the three decisions become
     contained utility cells, matching Home's lower utility row. */
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-my-waters{
    padding-top:24px!important;
    padding-bottom:26px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-selected-water{
    min-width:220px!important;
    padding:5px 0 5px 14px!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions{
    gap:12px!important;
    border-top:0!important;
    border-bottom:0!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a{
    min-height:78px!important;
    padding:13px 16px!important;
    border:1px solid rgba(12,47,37,.13)!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#12372f!important;
    box-shadow:0 3px 10px rgba(8,45,37,.025)!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a:hover,
  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a:focus-visible{
    border-color:rgba(11,74,55,.30)!important;
    background:#fffdf8!important;
    box-shadow:0 5px 14px rgba(8,45,37,.05)!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a.is-primary{
    border-color:#06452f!important;
    background:#06452f!important;
    color:#fff!important;
    box-shadow:inset 0 -3px 0 #e6a821!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a.is-primary span{
    color:#efb448!important;
    opacity:1!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a.is-primary strong{
    color:#fff!important;
  }

  body.dvh23b2-pocket-shell:not(.dvh23b7-fi-focused) .dvh23b5-water-actions>a.is-primary small{
    color:rgba(255,255,255,.75)!important;
    opacity:1!important;
  }
}
