.mobile-toolbar-strip{
  display:none;
}

.mobile-user-only{
  display:none;
}

.mobile-home-only{
  display:none;
}

@media (max-width: 1100px){
  .mobile-toolbar-strip{
    display:block;
    position:sticky;
    top:70px;
    z-index:1200;
    background:rgba(4, 12, 24, .95);
    border-bottom:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
  }

  .mobile-toolbar-strip-inner{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    padding-block:8px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }

  .mobile-toolbar-strip-inner::-webkit-scrollbar{
    display:none;
  }

  .mobile-toolbar-strip .pill{
    flex:0 0 auto;
    width:auto;
    min-width:104px;
    min-height:36px;
    padding:8px 10px;
    font-size:13px;
    line-height:1.2;
    justify-content:center;
    text-align:center;
  }

  html,
  body{
    overflow-x:hidden;
  }

  .header .container,
  .container,
  .public-inner,
  .site-main,
  .page-shell,
  .surface-panel,
  .card,
  .section-stack,
  .dashboard-grid,
  .ops-shell{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }

  .public-inner,
  .container,
  .site-main{
    padding-inline:14px;
  }

  .header .nav{
    min-width:0;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .header .nav .nav-actions{
    display:none !important;
  }

  .header .nav .menu-wrap,
  .header .nav #hamburgerBtn,
  .menu-wrap,
  #hamburgerBtn,
  .hamburger,
  #hamburgerPanel{
    display:none !important;
  }

  .header .brand{
    max-width:56vw;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .home-entry-page .mobile-toolbar-strip{
    top:0;
    display:none !important;
  }

  .home-entry-page .mobile-toolbar-strip-inner{
    justify-content:flex-start;
    gap:10px;
  }

  .home-entry-page .mobile-toolbar-strip-inner .pill{
    display:none;
  }

  .home-entry-page .mobile-toolbar-strip-inner .pill.mobile-home-only{
    display:inline-flex;
    min-width:112px;
  }

  .home-entry-page .home-flat-nav{
    display:flex;
    min-height:52px;
    padding:6px 12px;
    gap:12px;
    background:rgba(4,16,33,.74);
  }

  .about-page .mobile-toolbar-strip,
  .contact-page .mobile-toolbar-strip{
    display:block;
  }

  .menu-panel{
    top:70px;
    right:0;
    left:auto;
    width:min(94vw,360px);
    max-height:calc(100dvh - 88px);
    overflow-y:auto;
    overflow-x:hidden;
    z-index:1500;
  }

  .menu-panel .menu-item{
    min-height:44px;
    display:flex;
    align-items:center;
  }

  .page-kicker{
    font-size:11px;
    letter-spacing:.08em;
  }

  h1,
  .page-title h1,
  .page-copy h1{
    font-size:clamp(28px,7vw,34px);
    line-height:1.08;
  }

  h2,
  .public-header h2,
  .dash-header h2,
  .dash-top h2{
    font-size:clamp(22px,5.6vw,28px);
    line-height:1.16;
  }

  h3{
    font-size:clamp(18px,4.6vw,22px);
    line-height:1.2;
  }

  p,
  .muted,
  .panel-copy,
  .action-tile-copy{
    font-size:15px;
    line-height:1.48;
    overflow-wrap:anywhere;
  }
}

@media (max-width: 760px){
  .mobile-toolbar-strip{
    top:68px;
  }

  .mobile-toolbar-strip-inner{
    gap:7px;
    padding-block:7px;
  }

  .mobile-toolbar-strip .pill{
    min-height:36px;
    padding:8px 10px;
    font-size:12px;
    min-width:96px;
  }

  .page-actions,
  .hero-actions,
  .form-actions,
  .form-submit-row,
  .table-toolbar,
  .filters-form,
  .row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
  }

  .page-actions > *,
  .hero-actions > *,
  .form-actions > *,
  .form-submit-row > *,
  .table-toolbar > *,
  .filters-form > *,
  .row > *{
    min-width:0;
  }

  .form-grid-2,
  .form-grid-3{
    grid-template-columns:1fr !important;
    gap:10px;
  }

  .application-tabs__nav{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }

  .application-tabs__nav::-webkit-scrollbar{
    height:6px;
  }

  .application-tab{
    flex:0 0 auto;
    min-width:132px;
  }

  .lifestyle-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .table-card-shell,
  .public .table{
    width:100%;
    min-width:0;
  }

  .manager-applications-page .application-stats-grid{
    margin-top:8px;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }

  .manager-applications-page .application-stat-card{
    padding:10px 11px;
    border-radius:14px;
    gap:4px;
    min-height:0;
  }

  .manager-applications-page .application-stat-card .page-kicker{
    font-size:10px;
    letter-spacing:.06em;
  }

  .manager-applications-page .application-stat-card__value{
    font-size:26px;
    line-height:1;
  }

  .manager-applications-page .application-stat-note{
    font-size:11px;
    line-height:1.28;
  }

  .manager-applications-page .application-tabs{
    margin-top:10px;
    gap:10px;
  }

  .manager-applications-page .application-tabs__nav{
    gap:6px;
    padding-bottom:2px;
  }

  .manager-applications-page .application-tab{
    min-height:34px;
    padding:6px 10px;
    font-size:12px;
    line-height:1.2;
  }
}

/* Light-mode readability hardening: use the shared slate palette rather than pure black. */
:root[data-theme="light"] body,
:root[data-theme="light"] body :is(
  h1,h2,h3,h4,h5,h6,
  p,span,small,strong,em,
  li,dt,dd,td,th,label,
  input,select,textarea,option,
  .panel-copy,.page-kicker,.notice,
  .stat,.stat-num,.stat-card-value,.application-stack-hint,.today-queue-remove
){
  color:var(--atlas-text) !important;
}

:root[data-theme="light"] :is(.muted,.page-kicker,.panel-copy,.field-help,small){
  color:var(--atlas-text-muted) !important;
}

:root[data-theme="light"] a{
  color:var(--atlas-accent) !important;
  text-decoration-color:rgba(47,107,183,.35);
}

:root[data-theme="light"] :is(.pill,.badge,.ghost-btn,.secondary-btn,.menu-item,.dd-item,.application-tab,.word-link){
  color:var(--atlas-text) !important;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder{
  color:rgba(84,100,118,.82) !important;
}

@media (max-width: 480px){
  .atlas-map-copy{
    top:10px;
    left:10px;
    width:min(238px,calc(100% - 20px));
    padding:10px 11px;
    border-radius:16px;
  }

  .atlas-map-copy-kicker{
    font-size:clamp(17px,5.8vw,22px);
    line-height:1.12;
    letter-spacing:.012em;
  }

  .atlas-map-copy-text{
    font-size:12px;
    line-height:1.28;
    -webkit-line-clamp:2;
    max-width:18ch;
  }

  .atlas-map-copy-action{
    min-height:32px;
    font-size:12px;
    padding:6px 10px;
  }
}

/* Mobile UX hardening: prevent lifestyle/header clipping on narrow screens */
@media (max-width: 1100px){
  .header .container{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .header .atlas-logo-link{
    display:none !important;
  }

  .header .nav{
    display:grid !important;
    grid-template-columns:1fr auto 1fr !important;
    align-items:center;
    gap:8px;
    min-height:60px;
  }

  .header .nav-left.desktop-only,
  .header .nav-right .nav-actions,
  .header .nav-right .nav-trigger,
  .header .nav-right .menu-wrap{
    display:none !important;
  }

  .header .nav-right{
    justify-content:flex-end;
    min-width:0;
  }

  .atlas-center-logo-link{
    grid-column:2;
    justify-self:center;
    width:44px !important;
    height:44px !important;
    border-radius:10px;
  }

  .atlas-center-logo-image{
    width:32px !important;
    height:32px !important;
  }

  .mobile-toolbar-strip{
    top:60px !important;
  }

  .mobile-toolbar-strip-inner{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    -ms-overflow-style:none;
    white-space:nowrap;
    gap:8px;
    padding-block:8px;
  }

  .mobile-toolbar-strip-inner::-webkit-scrollbar{
    display:none;
  }

  .mobile-toolbar-strip .pill{
    flex:0 0 auto;
    width:auto;
    min-width:96px;
    padding:8px 10px;
    text-align:center;
  }

  .lifestyle-hub .public-inner,
  .lifestyle-hub .lifestyle-shell,
  .lifestyle-hub .lifestyle-hero,
  .lifestyle-hub .lifestyle-feed-grid,
  .lifestyle-hub .lifestyle-module-shell,
  .lifestyle-hub .lifestyle-inline-today,
  .lifestyle-hub .lifestyle-today-grid,
  .lifestyle-hub .lifestyle-hero-copy,
  .lifestyle-hub .lifestyle-hero-panel--ads,
  .lifestyle-hub .lifestyle-ad-reel,
  .lifestyle-hub .lifestyle-ad-track,
  .lifestyle-hub .lifestyle-story{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  .lifestyle-hub .lifestyle-hero{
    grid-template-columns:1fr !important;
  }

  .lifestyle-hub .lifestyle-hero-copy h1{
    font-size:clamp(28px,9vw,40px);
    line-height:1.08;
  }

  .lifestyle-hub .lifestyle-context-links{
    gap:8px 12px;
  }

  .lifestyle-hub .lifestyle-context-links .word-link{
    width:calc(50% - 6px);
    min-width:0;
    min-height:40px;
  }

  .lifestyle-hub .lifestyle-hero-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 12px;
  }

  .lifestyle-hub .lifestyle-hero-actions .word-link{
    width:auto;
    min-height:40px;
  }

  .lifestyle-hub .lifestyle-ad-track{
    min-height:300px;
  }
}

@media (max-width: 760px){
  .mobile-toolbar-strip-inner{
    gap:6px;
    padding-block:7px;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
  }

  .mobile-toolbar-strip .pill{
    flex:0 0 auto;
    min-height:36px;
    min-width:88px;
    padding:7px 9px;
    font-size:12px;
  }

  .lifestyle-hub .lifestyle-context-links .word-link{
    width:calc(50% - 6px);
    font-size:12px;
  }

  .lifestyle-hub .lifestyle-ad-track{
    min-height:260px;
  }

  /* Home door CTA visibility: avoid clipping the journey hint on small screens */
  .home-entry-page{
    overflow-y:auto !important;
  }

  .home-entry-page .site-main{
    min-height:100dvh;
    overflow:visible !important;
  }

  .home-entry-page .portal-stage{
    min-height:auto !important;
    padding-top:18px !important;
    padding-bottom:34px !important;
    place-items:start center !important;
  }

  .home-entry-page .door-scene--portal{
    padding-top:14px !important;
  }

  .home-entry-page .door-photo{
    height:min(52vh, 500px) !important;
  }

  .home-entry-page .door-notice{
    margin-top:14px !important;
    margin-bottom:6px !important;
    width:min(94vw, 560px);
    font-size:14px;
    line-height:1.35;
  }
}


/* sitewide text-link button treatment */
:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn){
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  width:fit-content;
  min-height:36px;
  padding:6px 0 8px;
  background:transparent !important;
  border:none !important;
  border-bottom:1px solid rgba(170,225,255,.35) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:rgba(184,231,255,.96) !important;
  font-weight:600;
  line-height:1.2;
}

:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn)::after{
  content:'->';
  font-size:13px;
  transition:transform 160ms ease;
}

:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn):hover,
:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn):focus-visible{
  background:transparent !important;
  border-bottom-color:rgba(198,240,255,.92) !important;
}

:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn):hover::after,
:is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn):focus-visible::after{
  transform:translateX(2px);
}

:root[data-theme="light"] :is(.primary-btn,.secondary-btn,.ghost-btn,button.primary-btn,button.secondary-btn,button.ghost-btn){
  color:#12364d !important;
  border-bottom-color:rgba(18,54,77,.32) !important;
}


