/* Phase 21P.3 — Multi-Water Daily Comparison */
.dvh21p3-compare{margin:0 0 16px;padding:20px;border:1px solid rgba(18,63,56,.16);border-radius:22px;background:linear-gradient(145deg,#fbfcf8,#fff8e9);box-shadow:0 10px 28px rgba(18,43,39,.045)}
.dvh21p3-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.dvh21p3-head h2{margin:4px 0 6px;font-size:clamp(1.35rem,2vw,1.9rem);line-height:1.08}.dvh21p3-head p{max-width:900px;margin:0;color:#596963;line-height:1.5}.dvh21p3-count{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#eaf5ee;border:1px solid #c8e0cf;color:#245a48;font-weight:850;font-size:.78rem}
.dvh21p3-water-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.dvh21p3-water-list span{padding:6px 9px;border-radius:999px;background:#fff;border:1px solid rgba(18,63,56,.12);font-size:.75rem;font-weight:750;color:#264b42}
.dvh21p3-start,.dvh21p3-empty{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.7);border:1px solid rgba(18,63,56,.09)}.dvh21p3-start strong,.dvh21p3-empty strong{display:block;color:#123f38}.dvh21p3-start small,.dvh21p3-empty small{display:block;margin-top:3px;color:#66746f;line-height:1.4}
.dvh21p3-compare-btn{min-height:48px;padding:0 20px;border:1px solid #d68d13;border-radius:999px;background:#e9a01c;color:#102c27;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(167,108,10,.15)}.dvh21p3-compare-btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(167,108,10,.19)}.dvh21p3-compare-btn:disabled{opacity:.65;cursor:wait;transform:none}
.dvh21p3-results{margin-top:16px}.dvh21p3-loading,.dvh21p3-error{padding:16px;border-radius:16px;background:#fff;border:1px solid rgba(18,63,56,.1);color:#53645e}.dvh21p3-error{border-color:#e6c6b9;background:#fff6f1}.dvh21p3-error strong,.dvh21p3-error span{display:block}.dvh21p3-error span{margin-top:4px}
.dvh21p3-summary{padding:15px 17px;border-radius:17px;background:linear-gradient(135deg,#123f38,#1d5a4e);color:#fff;box-shadow:0 9px 22px rgba(18,63,56,.14)}.dvh21p3-summary span,.dvh21p3-summary strong,.dvh21p3-summary small{display:block}.dvh21p3-summary span{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;opacity:.78;font-weight:800}.dvh21p3-summary strong{margin-top:3px;font-size:1.18rem}.dvh21p3-summary small{margin-top:3px;opacity:.86}.dvh21p3-summary.is-caution{background:linear-gradient(135deg,#7b5b1a,#a37a22)}
.dvh21p3-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.dvh21p3-card{padding:15px;border:1px solid rgba(18,63,56,.11);border-radius:17px;background:#fff;min-width:0}.dvh21p3-card.is-best{border-color:#9dccad;box-shadow:inset 4px 0 0 #2f775c}.dvh21p3-card.is-caution{background:#fffaf3;border-color:#e8d5ad}.dvh21p3-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.dvh21p3-card-top h3{margin:4px 0 2px;font-size:1.02rem;color:#123f38}.dvh21p3-card-top small{color:#71807a}.dvh21p3-rank{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef4ee;color:#386558;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.is-best .dvh21p3-rank{background:#dff1e5;color:#1f6749}.dvh21p3-score{text-align:right;flex:0 0 auto}.dvh21p3-score strong{font-size:1.45rem;line-height:1;color:#123f38}.dvh21p3-score span{font-size:.72rem;color:#65736e}.dvh21p3-score b{display:block;margin-top:3px;color:#926200;font-size:.76rem}
.dvh21p3-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.dvh21p3-metrics span{padding:9px 10px;border-radius:12px;background:#f5f8f5}.dvh21p3-metrics small,.dvh21p3-metrics strong{display:block}.dvh21p3-metrics small{font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;color:#79847f;font-weight:800}.dvh21p3-metrics strong{margin-top:3px;font-size:.82rem;color:#173c34}.dvh21p3-weather{margin:10px 0 0;color:#60706a;font-size:.78rem}.dvh21p3-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.dvh21p3-safety{font-size:.72rem;font-weight:850}.dvh21p3-safety.is-safe{color:#28694e}.dvh21p3-safety.is-caution{color:#966216}.dvh21p3-use{border:0;background:transparent;color:#9b6500;font:inherit;font-size:.77rem;font-weight:900;cursor:pointer;padding:6px}.dvh21p3-use:hover{text-decoration:underline}.dvh21p3-use:disabled{opacity:.6;cursor:wait}.dvh21p3-current{font-size:.75rem;font-weight:900;color:#315f51}.dvh21p3-unavailable{margin:9px 0 0;color:#7a6a61;font-size:.75rem}.dvh21p3-disclaimer{margin:13px 0 0;color:#6d7974;font-size:.74rem;line-height:1.45}
@media(max-width:800px){.dvh21p3-cards{grid-template-columns:1fr}.dvh21p3-head{display:block}.dvh21p3-count{display:inline-flex;margin-top:10px}.dvh21p3-start,.dvh21p3-empty{align-items:stretch;flex-direction:column}.dvh21p3-compare-btn,.dvh21p3-empty .btn{width:100%;justify-content:center}.dvh21p3-card-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.dvh21p3-compare{padding:15px;border-radius:18px}.dvh21p3-head h2{font-size:1.35rem}.dvh21p3-water-list{gap:5px}.dvh21p3-water-list span{font-size:.7rem}.dvh21p3-card{padding:13px}.dvh21p3-card-top{gap:8px}.dvh21p3-score strong{font-size:1.25rem}.dvh21p3-metrics{grid-template-columns:1fr}.dvh21p3-summary strong{font-size:1.05rem}}

/* Phase 21P.3B — comparison baseline alignment + mobile Fishing Intelligence overflow guard */
/* Keep the action/status row pinned to the same baseline across desktop comparison cards. */
.dvh21p3-card{display:flex;flex-direction:column}
.dvh21p3-card-foot{margin-top:auto;padding-top:12px}

/*
 * My Tackle Box mobile containment.
 * The page intentionally contains horizontally-scrollable hourly/7-day Fishing Intelligence strips;
 * those retain their own overflow-x:auto. This only prevents the page canvas/header/form controls
 * from becoming wider than the handset viewport and causing whole-page horizontal panning.
 */
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  @supports (overflow:clip){html,body{overflow-x:clip}}

  body .wrap,
  body .dvh21b-shell,
  body .dvh21o1-value,
  body .dvh21o1-quick-profile,
  body .dvh21o1-preview-result,
  body .dvh21o1-preview-controls,
  body .dvh21p3-compare,
  body .dvh21p3-start,
  body .dvh21p3-results,
  body .dvh21p3-cards,
  body .dvh21p3-card{
    min-width:0!important;
    max-width:100%!important;
  }

  body .dvh21o1-preview-controls label,
  body .dvh21o1-preview-controls select,
  body .dvh21o1-preview-controls button,
  body .dvh21o1-quick-fields,
  body .dvh21o1-quick-fields label,
  body .dvh21o1-quick-fields input{
    min-width:0!important;
    max-width:100%!important;
  }

  /* The canonical mobile header previously combined fixed logo/bell/menu widths that could
     exceed the inner grid width on some 360px-class devices. Let the brand column shrink. */
  body .dvh-shared-public-nav>.wrap.navin{
    grid-template-columns:minmax(0,1fr) 44px 92px!important;
    column-gap:7px!important;
    min-width:0!important;
    max-width:calc(100% - 24px)!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.dvh-public-brand{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.dvh-public-brand>.dvh-public-header-logo{
    width:min(178px,100%)!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.dvh-message-bell-mobile{
    width:44px!important;
    min-width:0!important;
    max-width:44px!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.tackle-menu-toggle{
    width:92px!important;
    min-width:0!important;
    max-width:92px!important;
  }

  /* Anonymous visitors have no message bell. Reclaim that empty column where :has() is supported. */
  body .dvh-shared-public-nav>.wrap.navin:not(:has(.dvh-message-bell-mobile)){
    grid-template-columns:minmax(0,1fr) 92px!important;
  }
  body .dvh-shared-public-nav>.wrap.navin:not(:has(.dvh-message-bell-mobile))>.tackle-menu-toggle{
    grid-column:2!important;
  }
}

@media(max-width:360px){
  body .dvh-shared-public-nav>.wrap.navin{
    grid-template-columns:minmax(0,1fr) 40px 86px!important;
    column-gap:6px!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.dvh-message-bell-mobile{
    width:40px!important;max-width:40px!important;
  }
  body .dvh-shared-public-nav>.wrap.navin>.tackle-menu-toggle{
    width:86px!important;max-width:86px!important;
  }
  body .dvh-shared-public-nav>.wrap.navin:not(:has(.dvh-message-bell-mobile)){
    grid-template-columns:minmax(0,1fr) 86px!important;
  }
}

/* Phase 21P.3C — comparison footer optical baseline alignment */
/* The action button and static Current Fishing Plan label used different vertical padding,
   which made the right-hand status look a few pixels lower even though the card footers
   occupied the same flex row. Give both terminal actions the same box metrics. */
@media(min-width:801px){
  .dvh21p3-card-foot{min-height:34px;align-items:center}
  .dvh21p3-use,
  .dvh21p3-current{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    box-sizing:border-box;
    padding:6px;
    line-height:1.2;
  }
}

/* Phase 21U.5 — Private personal history context inside Multi-Water Comparison. */
.dvh21u5-history{margin-top:11px;padding:10px 11px;border:1px solid rgba(219,151,25,.24);border-radius:12px;background:linear-gradient(135deg,#fffaf0,#f3f8f3);color:#173c34}
.dvh21u5-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.dvh21u5-history-head span{font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#8d650f}
.dvh21u5-history-head b{padding:3px 7px;border-radius:999px;background:#edf4ef;color:#49665d;font-size:.64rem;line-height:1.2}
.dvh21u5-history>strong,.dvh21u5-history>small,.dvh21u5-history>em{display:block}
.dvh21u5-history>strong{font-size:.78rem;line-height:1.35;color:#173c34}
.dvh21u5-history>small{margin-top:2px;color:#65736e;font-size:.7rem;line-height:1.4}
.dvh21u5-history>em{margin-top:5px;color:#315f51;font-size:.69rem;font-style:normal;font-weight:750;line-height:1.35}
.dvh21u5-history>a{display:inline-flex;margin-top:6px;color:#8f6207;font-size:.69rem;font-weight:900;text-decoration:none}
.dvh21u5-history>a:hover{text-decoration:underline}
.dvh21u5-history.is-empty{border-color:rgba(18,63,56,.10);background:#f7f9f7}
.dvh21u5-history.is-empty .dvh21u5-history-head span{color:#5f746d}
.dvh21u5-rank-note{margin:9px 2px 0;color:#6d7974;font-size:.7rem;line-height:1.4}
@media(max-width:560px){.dvh21u5-history{padding:9px 10px}.dvh21u5-history-head{align-items:flex-start}.dvh21u5-history-head b{text-align:right}}
