/* OBOR mobile-only first-screen polish.
   Desktop: no changes. All layout rules are limited to <=700px AND
   a class applied only after the mobile interaction layer is initialized. */
.obor-mobile-context{display:none}
@media(max-width:700px){
  .site-header.obor-tools-ready #home-nav>.obor-mobile-nav-customize{
    display:flex!important;align-items:center;gap:10px;width:100%;
    min-height:48px;padding:12px 2px;margin:0;
    border:0!important;border-top:1px solid #dce7eb!important;
    background:transparent!important;border-radius:0!important;
    box-shadow:none!important;color:#23576b!important;
    font-family:inherit;font-size:12px!important;font-weight:750;
    text-align:left;cursor:pointer;
  }
  .site-header.obor-tools-ready #home-nav>.obor-mobile-nav-customize svg{
    display:block;width:17px;height:17px;flex:0 0 17px;
  }

  body.home-v3.obor-mobile-firstscreen .economic-reading{
    padding-top:7px;padding-bottom:11px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-shell{
    padding:12px 12px 13px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading{
    display:flex;flex-direction:row;align-items:center;justify-content:space-between;
    flex-wrap:nowrap;gap:8px;min-height:40px;margin-bottom:8px;position:relative;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading-text{
    min-width:0;flex:1 1 auto;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading .eyebrow{
    display:block;white-space:nowrap;
    font-size:9px;letter-spacing:.08em;line-height:1.25;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading .economic-lens-separator,
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading #economic-period{
    display:none;
  }
  body.home-v3.obor-mobile-firstscreen .economic-month-picker{
    display:flex;flex:0 0 auto;justify-content:flex-end;flex-wrap:nowrap;
    gap:6px;align-items:center;max-width:53%;
  }
  body.home-v3.obor-mobile-firstscreen .economic-month-picker>label,
  body.home-v3.obor-mobile-firstscreen #economic-month-prev,
  body.home-v3.obor-mobile-firstscreen #economic-month-next{
    display:none;
  }
  body.home-v3.obor-mobile-firstscreen .economic-month-picker input[type=month]{
    width:126px;min-width:0;max-width:100%;min-height:42px;height:42px;
    padding:6px 7px;font-size:13px;font-weight:650;border-radius:7px;
    background:#fff;
  }
  body.home-v3.obor-mobile-firstscreen #economic-month-latest:disabled{display:none}
  body.home-v3.obor-mobile-firstscreen #economic-month-latest:not(:disabled){
    display:inline-flex;align-items:center;justify-content:center;
    min-height:42px;padding:7px 9px;font-size:11px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-month-status{
    display:none;
  }
  body.home-v3.obor-mobile-firstscreen .economic-month-status[data-error=true]{
    display:block;position:absolute;left:12px;right:12px;
    top:calc(100% + 2px);z-index:2;
    padding:7px 8px;border:1px solid #dfaaa7;border-radius:6px;
    background:#fff7f6;color:#993f3a;line-height:1.4;
    text-align:left;white-space:normal;
  }
  body.home-v3.obor-mobile-firstscreen .economic-question-launchline{
    display:block;margin:0 0 8px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-question-launch{
    min-height:50px;padding:7px 11px;gap:9px;border-color:#bfcfd7;
  }
  body.home-v3.obor-mobile-firstscreen .economic-question-launch-symbol{
    width:28px;height:28px;flex-basis:28px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-question-launch-copy strong{
    font-size:13px;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context{
    display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:center;
    gap:8px;min-height:61px;margin:0 0 4px;padding:8px 10px;
    background:#f1f6f7;border:1px solid #d9e6ea;border-radius:9px;
    color:#234a5d;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context-copy{
    min-width:0;display:flex;flex-direction:column;gap:4px;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context-main{
    display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:12px;font-weight:720;line-height:1.2;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context-secondary{
    display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:10.5px;line-height:1.3;color:#627c89;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context-edit{
    align-self:stretch;min-width:48px;min-height:44px;
    background:#fff;border:1px solid #c7d8df;border-radius:7px;
    padding:8px 6px;color:#255b70;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;
    cursor:pointer;
  }
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context-edit:focus-visible{
    outline:2px solid #2a829c;outline-offset:3px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-controls{
    display:none!important;
    margin:5px 0 9px;padding:9px 0 10px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-shell[data-obor-mobile-edit=true] .economic-lens-controls{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-controls label{
    min-height:52px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-output{
    gap:12px;padding:9px 0 8px;margin:0;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-scope{
    font-size:10px;margin-bottom:7px;line-height:1.35;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-metrics{
    gap:10px 15px;margin-bottom:9px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-primary-value>strong{
    font-size:clamp(40px,11vw,50px);letter-spacing:-.065em;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-change-group strong{
    font-size:18px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-summary{
    font-size:13px;line-height:1.43;margin-bottom:5px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-qualifier{
    font-size:11px;line-height:1.4;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-graphic{
    padding-top:11px;gap:7px;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-bars-title{
    margin-bottom:6px;
  }
  body.home-v3.obor-mobile-firstscreen .research-bar-hint{
    margin-top:3px;
  }
}
@media(max-width:340px){
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading .eyebrow{font-size:8.5px;letter-spacing:.065em}
  body.home-v3.obor-mobile-firstscreen .economic-month-picker input[type=month]{width:116px;padding:5px 5px;font-size:12px}
  body.home-v3.obor-mobile-firstscreen .economic-lens-shell[data-obor-mobile-edit=true] .economic-lens-controls{
    grid-template-columns:minmax(0,1fr);
  }
  body.home-v3.obor-mobile-firstscreen .obor-workspace-controls-pin .economic-lens-controls > .economic-generate-report{
    grid-column:1;grid-row:2;
  }
}
@media(max-width:340px){
  body.home-v3.obor-mobile-firstscreen .economic-lens-heading{flex-wrap:wrap}
  body.home-v3.obor-mobile-firstscreen .economic-month-picker{max-width:100%}
  body.home-v3.obor-mobile-firstscreen .obor-mobile-context{grid-template-columns:minmax(0,1fr) 48px}
}


/* The summary and expanded editors share a sticky surface, so Edit works
   anywhere within the Research Questions section, even after scrolling. */
@media(max-width:700px){
  body.home-v3.obor-mobile-firstscreen .obor-workspace-controls-pin{
    padding:4px 5px;
    margin-bottom:8px;
    border-color:#d7e3e7;
    background:rgba(249,251,251,.99);
    box-shadow:0 3px 11px rgba(22,56,71,.075);
  }
  body.home-v3.obor-mobile-firstscreen .obor-workspace-controls-pin .obor-mobile-context{
    min-height:55px;
    margin:0;
    padding:6px 8px;
    border:0;
    border-radius:6px;
    background:#eef4f6;
  }
  body.home-v3.obor-mobile-firstscreen .economic-lens-shell[data-obor-mobile-edit=true]
  .obor-workspace-controls-pin .economic-lens-controls{
    padding:7px 0 3px;
    margin:4px 0 0;
    border-top:1px solid #d6e2e7;
    border-bottom:0;
    max-height:calc(100dvh - var(--obor-workspace-sticky-top,80px) - 90px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}
