/* These mobile changes are loaded only by the sample and resident workspaces. */
@media (max-width:800px) {
  body.sd-sample-direct .nc-context .dx-city-select,
  body.sd-sample-direct .dx-hero .dx-start,
  body.sd-sample-direct .dx-hero .mp-lede,
  body.sd-sample-direct .dx-hero-proof,
  body.sd-sample-direct .dx-hero h1 br,
  body.sd-sample-direct .dx-hero h1 span { display:none!important; }
  body.sd-sample-direct .nc-context .mp-shell { gap:8px; padding-block:14px; }
  body.sd-sample-direct .nc-context :is(nav,a) { font-size:17px!important; }
  body.sd-sample-direct .dx-hero-grid { display:block; padding-block:22px 24px; }
  body.sd-sample-direct .dx-hero .mp-eyebrow { margin:0 0 10px; font-size:17px!important; line-height:1.45!important; }
  body.sd-sample-direct .dx-hero h1 { max-width:none; margin:0; font-size:36px!important; line-height:1.1!important; letter-spacing:-.045em!important; }
  body.sd-sample-direct .dx-workspace-section { padding-top:20px; }
  body.sd-sample-direct .v2-sample-chooser { margin-bottom:14px; }
  body.sd-sample-direct .v2-sample-chooser label { font-size:17px!important; }
  body.sd-sample-direct .v2-sample-chooser select { font-size:18px!important; }
  body.sd-sample-direct :is(.v2-dataset-count,.v2-sample-result,.dx-view-tabs button,.v2-sample-tools>summary,.dx-pagination span,.dx-source-bar,.v2-record-preview dt,.v2-record-fields dt) { font-size:17px!important; line-height:1.45!important; }
  body.sd-sample-direct :is(.v2-record-preview dd,.v2-record-fields dd,.v2-record-all>summary,.v2-sample-tools-body input,.v2-sample-tools-body select) { font-size:18px!important; line-height:1.5!important; }
  body.sd-sample-direct .cp-promo { margin-top:0; padding-block:28px; border-top:1px solid #d9dfd5; }
  body.sd-sample-direct .cp-promo p { font-size:18px!important; line-height:1.6!important; }
  body.sd-sample-direct .cp-promo-actions a { font-size:17px!important; }
  body.sd-v2.sd-reading-type.data-explorer-page.sd-sample-direct :is(.dx-panel-intro p,.dx-field dd,.dx-evidence p,.v2-record-fields dd) { font-size:18px!important; line-height:1.6!important; }
  body.sd-v2.sd-reading-type.data-explorer-page.sd-sample-direct :is(.dx-field dt,.dx-field-controls,.dx-field-source,.dx-field-example,.dx-label,.dx-selection-note,.dx-download-scope) { font-size:17px!important; line-height:1.5!important; }
}
@media (max-width:850px) {
  body.sd-resident-inline-menu .lc-explore-nav { position:sticky; top:var(--lc-header-height,76px); z-index:30; border-bottom:1px solid #b8c9ad; background:#e6eddf; box-shadow:0 5px 12px #153b2e0d; }
  body.sd-resident-inline-menu .lc-explore-nav :is(.lc-mobile-context,.v2-current-view,.v2-timeline-overview) { background:transparent; border-color:#c6d3bb; }
  body.sd-resident-inline-menu .lc-explore-nav :is(.lc-section-kicker,.v2-undated-jump),body.sd-v2.sd-reading-type.sd-resident-inline-menu .lc-explore-nav #lcMobileScope.v2-active-scope { color:#006c5b!important; }
  body.sd-resident-inline-menu .lc-explore-nav>.lc-tabs { display:none; }
  body.sd-resident-inline-menu .lc-mobile-context { padding-block:12px; }
  body.sd-resident-inline-menu .v2-current-view { padding-block:8px; }
  body.sd-resident-inline-menu .v2-current-view>div>span { display:none; }
  body.sd-resident-inline-menu .v2-timeline-overview { padding-bottom:8px; border-bottom:0; }
  body.sd-resident-inline-menu .v2-timeline-overview[hidden] { display:none!important; }
  body.sd-resident-inline-menu :is(.lc-event,#lcRecordRows tr,.lc-connection-card,.lc-pagination,#v2UndatedRecords) { scroll-margin-top:calc(var(--lc-header-height,76px) + var(--lc-nav-height,250px) + 12px); scroll-margin-bottom:calc(var(--sd-resident-dock-height,76px) + 12px); }
  body.sd-resident-inline-menu { padding-bottom:calc(var(--sd-resident-dock-height,76px) + 12px); scroll-padding-bottom:calc(var(--sd-resident-dock-height,76px) + 16px); }
  body.sd-resident-inline-menu .sd-resident-page-actions { position:fixed; inset:auto 0 0; z-index:65; display:grid; grid-template-columns:1fr 1fr; align-items:stretch; gap:12px; margin:0; padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); border-top:1px solid #bdcdbf; background:#fff; box-shadow:0 -4px 18px #153b2e0d; }
  body.sd-resident-inline-menu .sd-resident-page-actions .v2-direct-change { justify-content:center; min-width:0; margin:0; padding:10px 12px; min-height:48px; border:1px solid #bdcdbf; border-radius:7px; text-decoration:none; font-size:16px!important; line-height:1.4!important; }
  body.sd-resident-inline-menu.v2-resident-drawer-ready .v2-journey-launcher { position:static; inset:auto; transform:none!important; width:100%; max-width:none; min-width:0; min-height:48px; justify-content:center; padding:10px 12px; gap:8px; border-radius:7px; box-shadow:none; font-size:17px!important; line-height:1.4!important; }
  body.sd-resident-inline-menu .v2-journey-launcher svg { flex:none; width:19px; }
  body.sd-resident-inline-menu .sd-resident-page-actions[hidden],body.sd-resident-inline-menu:has(dialog[open]) .sd-resident-page-actions { display:none!important; }
  body.sd-resident-inline-menu #lcContent>.lc-workspace { padding-bottom:24px; }
  body.sd-resident-inline-menu :is(.v2-resident-facts,.v2-current-view span,.v2-view-change,.v2-timeline-count,.v2-undated-jump,.lc-mobile-context .lc-section-kicker) { font-size:17px!important; line-height:1.45!important; }
  body.sd-v2.sd-reading-type.sd-resident-inline-menu .lc-mobile-context #lcMobileScope.v2-active-scope { font-size:17px!important; line-height:1.45!important; }
  body.sd-v2.sd-reading-type.view-citizen-lifecycle.sd-resident-inline-menu :is(.lc-event,.lc-field dd,.lc-inspector p,.v2-menu-panel-intro,.lc-bottom p) { font-size:18px!important; line-height:1.5!important; }
  body.sd-v2.sd-reading-type.view-citizen-lifecycle.sd-resident-inline-menu :is(.lc-field dt,.lc-meta,.lc-pagination>span,.lc-graph-footer,.lc-connection-card span,.lc-event small,.lc-day h3,.lc-inspector-top,.lc-detail-context,.lc-record-tools p,.lc-scope,.lc-trust,.v2-menu-action small) { font-size:17px!important; line-height:1.5!important; }
}
.sd-resident-page-actions { display:none; }
@media (max-width:850px) { .sd-resident-page-actions { display:grid; } }
/* Keep record space on short screens; full profile context stays in the page menu. */
@media (max-width:850px) and (max-height:700px) {
  body.sd-resident-inline-menu .lc-mobile-context :is(.lc-section-kicker,.v2-resident-facts) { display:none!important; }
  body.sd-resident-inline-menu .lc-mobile-context { padding-block:8px; }
  body.sd-resident-inline-menu #lcMobileName { font-size:22px!important; }
}
@media (max-width:850px) and (max-height:480px) {
  body.sd-resident-inline-menu .lc-mobile-context #lcMobileScope { display:none!important; }
  body.sd-resident-inline-menu .v2-timeline-overview { padding-top:0; }
  body.sd-resident-inline-menu .v2-undated-jump { min-height:32px; padding-block:4px; }
}
@media (min-width:360px) and (max-width:850px) {
  body.sd-resident-inline-menu .v2-view-change { max-width:none; white-space:nowrap; }
}
@media (min-width:600px) and (max-width:850px) and (max-height:480px) {
  body.sd-resident-inline-menu .lc-explore-nav { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; }
  body.sd-resident-inline-menu .lc-mobile-context { border-bottom:0; }
  body.sd-resident-inline-menu .v2-current-view { background:#fff; }
  body.sd-resident-inline-menu .v2-timeline-overview { grid-column:1/-1; }
}
