/*
 * Da Vat Hy Lures — Phase 23C.10H
 * Fishing Intelligence — Home Page Architecture Reset
 *
 * Built from the actual Home Page layout rule:
 *   outer section = full viewport width
 *   inner content line = min(1500px, 88.5vw)
 *   alternating green / cream / white bands
 *   cards only inside the band when they improve scanning
 *
 * Desktop only. Approved mobile remains unchanged.
 */

@media(min-width:901px){

  body.dvh23b2-pocket-shell{
    --dvh-home-green:#06452f;
    --dvh-home-green2:#003e29;
    --dvh-home-gold:#e6a821;
    --dvh-home-cream:#f7f4ec;
    --dvh-home-paper:#fffdf8;
    --dvh-home-ink:#0c2f25;
    --dvh-home-muted:#5a685f;
    --dvh-home-line:#dcd8cb;
    --dvh-home-wrap:min(1500px,88.5vw);
    --dvh-home-gutter:max(24px,calc((100vw - min(1500px,88.5vw))/2));
    background:#f7f4ec!important;
  }

  /* -------------------------------------------------------------
     Shared Pocket Tackle bar follows the SAME visual content line as Home.
     ------------------------------------------------------------- */
  body.dvh23b2-pocket-shell .dvh23c4a-appbar .dvh23b2-appbar-inner{
    width:var(--dvh-home-wrap)!important;
    max-width:none!important;
    margin-inline:auto!important;
  }

  /* =============================================================
     MY TACKLE BOX SHELL
     Today remains the approved reference.
     Waters + Profile now use Home-style section layouts.
     ============================================================= */

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) main.dvh21b-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:var(--dvh-home-cream)!important;
  }

  /* ---------- WATERS = Home "Featured" pattern ----------
     Intro left; working content right.
     ----------------------------------------------------- */
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-waters{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--dvh-home-gutter) 20px!important;
    display:grid!important;
    grid-template-columns:minmax(250px,.95fr) minmax(0,4fr)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:28px!important;
    row-gap:0!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:var(--dvh-home-cream)!important;
    box-shadow:none!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-waters-head{
    grid-column:1!important;
    grid-row:1 / 4!important;
    align-self:start!important;
    padding:9px 16px 0 0!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-waters-head h3{
    margin:7px 0 9px!important;
    font-size:23px!important;
    line-height:1.05!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-waters-head p{
    max-width:260px!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-current-water{
    grid-column:2!important;
    grid-row:1!important;
    min-height:82px!important;
    margin:0!important;
    padding:12px 16px!important;
    border:1px solid #e0dccf!important;
    border-radius:7px 7px 0 0!important;
    background:rgba(255,255,255,.65)!important;
    box-shadow:none!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-saved-preview,
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-no-waters{
    grid-column:2!important;
    grid-row:2!important;
    margin:0!important;
    padding:12px 16px!important;
    border-left:1px solid #e0dccf!important;
    border-right:1px solid #e0dccf!important;
    background:rgba(255,255,255,.42)!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-saved-preview .dvh23b5-water-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-saved-preview .dvh23b5-water-chips span{
    padding:6px 9px!important;
    border:1px solid #dcd8cb!important;
    border-radius:4px!important;
    background:#fff!important;
    font-size:11px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-compare{
    grid-column:2!important;
    grid-row:3!important;
    min-height:64px!important;
    margin:0!important;
    padding:11px 16px!important;
    border:1px solid #dcd8cb!important;
    border-top:0!important;
    border-bottom:3px solid var(--dvh-home-gold)!important;
    border-radius:0 0 7px 7px!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  /* ---------- PROFILE = Home "Quick Links" pattern ---------- */
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-hub{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--dvh-home-gutter) 20px!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:var(--dvh-home-cream)!important;
    box-shadow:none!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-head{
    margin-bottom:11px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-head h2{
    margin:5px 0 6px!important;
    font-size:23px!important;
    line-height:1.05!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-head p{
    font-size:12px!important;
  }

  /* Status behaves like the Home proof bar: one horizontal strip. */
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-status{
    min-height:72px!important;
    margin:0!important;
    border-top:1px solid rgba(12,47,37,.11)!important;
    border-bottom:1px solid rgba(12,47,37,.11)!important;
    background:transparent!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-status>div{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding:10px 18px!important;
  }

  /* The three setup actions = Home quick-link cards. */
  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-actions{
    grid-template-columns:repeat(3,1fr)!important;
    gap:13px!important;
    margin-top:14px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-actions article{
    min-height:112px!important;
    padding:15px!important;
    border:1px solid #e0dccf!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.68)!important;
    box-shadow:0 3px 10px rgba(0,0,0,.035)!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-actions article>strong{
    font-size:13px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c7-profile-actions article>p{
    font-size:11px!important;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) #pocket-profile{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    background:#fff!important;
  }

  /* =============================================================
     FISH NOW
     Home sequence:
     green hero → proof/safety strip → cream content band →
     green decision band → cream result band → utility rows
     ============================================================= */

  body.dvh23b4-fishing-mode .dvh21p4-wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:var(--dvh-home-cream)!important;
  }

  /* Unified hero remains the approved 23C.10D/F version. */
  body.dvh23b4-fishing-mode .dvh23c10d-unified-fish-hero{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }

  /* Safety = Home proof-bar language. */
  body.dvh23b4-fishing-mode .dvh21p4-safety{
    width:100%!important;
    max-width:none!important;
    min-height:66px!important;
    margin:0!important;
    padding:11px var(--dvh-home-gutter)!important;
    border:0!important;
    border-top:1px solid rgba(255,255,255,.05)!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
    border-radius:0!important;
    background:linear-gradient(90deg,#06452f,#00402b,#063e2c)!important;
    color:#fff!important;
    box-shadow:none!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-safety span,
  body.dvh23b4-fishing-mode .dvh21p4-safety strong,
  body.dvh23b4-fishing-mode .dvh21p4-safety p{
    color:#fff!important;
  }

  /* Fishing picture = Home featured/light section. */
  body.dvh23b4-fishing-mode .dvh23c5-picture-head{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--dvh-home-gutter) 8px!important;
    background:var(--dvh-home-cream)!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-picture-head h2{
    margin:5px 0 0!important;
    font-size:23px!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-primary{
    width:var(--dvh-home-wrap)!important;
    max-width:none!important;
    min-height:134px!important;
    margin:0 auto 18px!important;
    padding:0!important;
    grid-template-columns:280px minmax(0,1fr)!important;
    overflow:hidden!important;
    border:1px solid #e2ded3!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:0 4px 12px rgba(0,0,0,.045)!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-score{
    padding:18px 22px!important;
    background:#fffaf0!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-now{
    padding:18px 22px!important;
  }

  /* What to throw / Window / Barometer = Home FI green band. */
  body.dvh23b4-fishing-mode .dvh23c5-decisions{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:16px var(--dvh-home-gutter)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.45fr) repeat(2,minmax(0,.8fr))!important;
    gap:0!important;
    border:0!important;
    border-radius:0!important;
    background:
      radial-gradient(circle at 55% 20%,rgba(16,95,68,.28),transparent 25%),
      linear-gradient(90deg,#01412c,#003722 62%,#033e2b)!important;
    color:#fff!important;
    box-shadow:none!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-decisions>article{
    min-height:108px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    margin:0!important;
    padding:14px 24px!important;
    border:0!important;
    border-top:1px solid rgba(230,168,33,.22)!important;
    border-bottom:1px solid rgba(230,168,33,.18)!important;
    border-right:1px solid rgba(255,255,255,.10)!important;
    border-radius:0!important;
    background:transparent!important;
    color:#fff!important;
    box-shadow:none!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-decisions>article:last-child{
    border-right:0!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-decisions :is(span,strong,small,a){
    color:#fff!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-decisions article>span{
    color:var(--dvh-home-gold)!important;
    font-size:11px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
  }

  body.dvh23b4-fishing-mode .dvh23c5-lure-link{
    width:max-content!important;
    margin-top:8px!important;
    color:#f0cf75!important;
  }

  /* Result capture = Home quicklinks/light band. */
  body.dvh23b4-fishing-mode .dvh23b4-outcome{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--dvh-home-gutter) 20px!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:var(--dvh-home-cream)!important;
    box-shadow:none!important;
  }

  body.dvh23b4-fishing-mode .dvh21p6-outcome-head h2{
    margin:5px 0 6px!important;
    font-size:23px!important;
  }

  body.dvh23b4-fishing-mode .dvh21p6-outcome-actions{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:13px!important;
    margin-top:13px!important;
  }

  body.dvh23b4-fishing-mode .dvh21p6-outcome-actions button{
    min-height:70px!important;
    border:1px solid #e0dccf!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.68)!important;
    color:var(--dvh-home-ink)!important;
    box-shadow:0 3px 10px rgba(0,0,0,.035)!important;
  }

  body.dvh23b4-fishing-mode .dvh21p6-outcome-actions button.caught{
    border-bottom:3px solid var(--dvh-home-gold)!important;
  }

  /* Low-frequency detail = utility rows, not feature cards. */
  body.dvh23b4-fishing-mode :is(
    .dvh23b4-intelligence-detail,
    .dvh23c5-more
  ){
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  body.dvh23b4-fishing-mode :is(
    .dvh23b4-intelligence-detail,
    .dvh23c5-more
  )>summary{
    min-height:48px!important;
    padding:9px var(--dvh-home-gutter)!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-note{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:10px var(--dvh-home-gutter) 16px!important;
    border:0!important;
    background:var(--dvh-home-cream)!important;
  }

  /* =============================================================
     HISTORY
     green hero → cream overview → white accordion rows
     ============================================================= */

  body.dvh23b6-history-body .dvh23b6-history-wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    background:var(--dvh-home-cream)!important;
  }

  body.dvh23b6-history-body .dvh23c6-history-hero{
    width:100%!important;
    max-width:none!important;
    min-height:168px!important;
    margin:0!important;
    padding:24px var(--dvh-home-gutter)!important;
    border:0!important;
    border-radius:0!important;
    background:linear-gradient(118deg,#073d2f 0%,#0a4b38 58%,#355c3d 100%)!important;
  }

  body.dvh23b6-history-body .dvh23c6-history-hero h1{
    font-size:clamp(2.7rem,4vw,4rem)!important;
  }

  body.dvh23b6-history-body .dvh23c6-dashboard{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--dvh-home-gutter) 20px!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:var(--dvh-home-cream)!important;
    box-shadow:none!important;
  }

  body.dvh23b6-history-body .dvh23c6-dashboard-head h2{
    font-size:23px!important;
  }

  body.dvh23b6-history-body .dvh23c6-kpis{
    min-height:72px!important;
  }

  body.dvh23b6-history-body .dvh23c6-nav-grid{
    grid-template-columns:repeat(4,1fr)!important;
    gap:13px!important;
  }

  body.dvh23b6-history-body .dvh23c6-nav-grid .dvh21y2-nav-card{
    min-height:104px!important;
    border:1px solid #e0dccf!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.66)!important;
    box-shadow:0 3px 10px rgba(0,0,0,.035)!important;
  }

  body.dvh23b6-history-body .dvh21y2-detail{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #e0ddd2!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  body.dvh23b6-history-body .dvh21y2-detail>summary{
    min-height:50px!important;
    padding:9px var(--dvh-home-gutter)!important;
    background:#fff!important;
  }

  body.dvh23b6-history-body .dvh21y2-detail[open]>summary{
    background:var(--dvh-home-cream)!important;
  }

  body.dvh23b6-history-body .dvh21u1-boundary{
    width:100%!important;
    margin:0!important;
    padding:12px var(--dvh-home-gutter) 18px!important;
    background:var(--dvh-home-cream)!important;
  }
}

/* Laptop desktop: Home uses one consistent gutter. */
@media(min-width:901px) and (max-width:1179px){
  body.dvh23b2-pocket-shell{
    --dvh-home-wrap:calc(100% - 56px);
    --dvh-home-gutter:28px;
  }

  body.dvh21p2-returning:not(.dvh23b7-fi-focused) .dvh23c4-waters{
    grid-template-columns:220px minmax(0,1fr)!important;
    column-gap:20px!important;
  }

  body.dvh23b4-fishing-mode .dvh21p4-primary{
    grid-template-columns:240px minmax(0,1fr)!important;
  }
}

/* Structural protection: no new desktop architecture leaks into mobile. */
@media(max-width:900px){
  body.dvh23b2-pocket-shell{
    --dvh-home-wrap:100%;
    --dvh-home-gutter:16px;
  }
}
