/* Presentation review, October 2026. No new fonts, images or dependencies.
   Scope refinements to the older service surfaces; preserve map, chat and planner geometry. */
.workspace-menu-toggle { display: none; }
@media screen {
  #main-content > .page:not(.pl-page) { padding-top: 30px; }
  .page > .page-heading { align-items: start; gap: 16px; margin-bottom: 24px; }
  .page > .page-heading h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.16; text-wrap: balance; }
  .page > .page-heading .eyebrow { margin: 0 0 10px; color: var(--theme-accent, var(--teal-700)); }
  .page > .page-heading p:not(.eyebrow) { line-height: 1.6; }
  .page > .page-heading > *, .toolbar > .field, .nw-content { min-width: 0; }

  /* Filters are one predictable grid, not an oversized locality field plus a stray second row. */
  #program-filter { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 14px; padding: 20px; box-shadow: none; border: 0; border-radius: 14px; }
  #program-filter .field { min-width: 0; width: auto; }
  #program-filter .field :is(select,input) { min-width: 0; width: 100%; height: 44px; min-height: 44px; }
  #program-filter > button { min-height: 44px; white-space: normal; }
  .page > .empty-state, #program-results > .empty-state { padding: 34px 24px; border: 0; box-shadow: none; background: var(--theme-soft, #eef3f0); }
  .empty-state h2 { margin: 0 0 8px; }
  .empty-state p:last-child { margin-bottom: 0; }
  .case-row { overflow-wrap: anywhere; }

  /* Keep safety information visible while bringing the actual request choices up the page. */
  .page:has(> #case-form) { padding-top: 18px !important; }
  .page:has(> #case-form) .service-page-banner { min-height: 0; padding: 24px 28px; margin-bottom: 16px; box-shadow: none; border-radius: 14px; }
  .page:has(> #case-form) .service-page-banner h1 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); line-height: 1.18; }
  .page:has(> #case-form) .service-page-banner .eyebrow { margin: 0 0 8px; }
  .page:has(> #case-form) > .notice { padding: 12px 16px; font-size: .87rem; line-height: 1.6; }
  #case-form.form-card { padding: 22px; margin-top: 16px !important; box-shadow: none; }
  .page:has(> #case-form) .case-wizard-progress { margin-bottom: 16px; padding: 12px 16px; }
  #case-form .choice > span { padding: 14px; }
  #main-content .im-home-entry { margin-top: 12px; padding-block: 10px; box-shadow: none; }
  .ci-hero-work { min-height: 270px; padding-block: 34px; display: flex; align-items: center; }
  .ci-hero-work h1 { margin-block: 8px 12px; }
  .ci-hero-work p:last-child { margin-bottom: 0; }

  /* Circle discovery: the illustration supports the introduction instead of owning the screen. */
  .jc-page:has(.jc-hero) { padding-top: 24px; }
  .jc-hero { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; padding: 0 0 12px; }
  .jc-hero h1 { font-size: clamp(1.85rem, 2.8vw, 2.35rem); margin: 8px 0 12px; max-width: 700px; }
  .jc-hero p { margin: 0 0 12px; max-width: 760px; }
  .jc-hero .jc-orbits { height: 170px; width: 210px; transform: none; margin: 0; }
  .jc-hero .jc-orbits b { width: 44px; height: 44px; }
  .jc-hero .jc-orbits b:first-child { width: 64px; height: 64px; left: 35%; top: 30%; }
  .jc-hero .jc-orbits svg { width: 24px; height: 24px; }
  .jc-page:has(.jc-hero) .sa-circle-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
  .jc-page:has(.jc-hero) .sa-circle-guide p { flex: 1 1 350px; margin: 0; }
  .jc-page:has(.jc-hero) .jsv-entry { padding: 14px 18px; margin: 0 0 20px; }
  .jc-page:has(.jc-hero) .jsv-entry p { margin: 4px 0 0; }
  .jc-toolbar { gap: 12px; margin-bottom: 20px; }

  /* Notifications: a calm reading surface; categories no longer form a second wide sidebar. */
  .nw-heading { margin-bottom: 22px; }
  .nw-heading p { margin-bottom: 0; line-height: 1.6; }
  .nw-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
  .nw-unread { padding: 0 0 14px; }
  .nw-unread strong { font-size: 1.6rem; }
  .nw-sidebar nav button { min-height: 44px; font-size: .84rem; padding: 10px; gap: 8px; }
  .nw-sidebar nav button span { min-width: 0; }
  .nw-sidebar nav small:empty { display: none; }
  .nw-toolbar { gap: 12px; }
  .nw-tabs { padding: 3px; border-radius: 9px; background: var(--theme-soft, #eef3f0); }
  .nw-tabs button { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
  .nw-search input { min-height: 44px; }
  .nw-list-heading { margin: 14px 0 12px; }
  .nw-list-heading button:disabled { opacity: .5; text-decoration: none; cursor: default; }
  .nw-item { gap: 12px; padding: 18px; margin-bottom: 10px; border-radius: 12px; background: var(--theme-surface, var(--paper)); }
  .nw-item.is-unread { background: var(--theme-tint, #e8f2ed); }
  .nw-item-icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; background: var(--theme-soft, #eef3f0); }
  .nw-item-meta { line-height: 1.5; }
  .nw-item p { line-height: 1.55; }
  .nw-item-actions { flex-wrap: wrap; gap: 8px 16px; }

  /* Chat help stays reachable without a wide floating pill covering page actions. */
  .host-chat-entry { width: 46px; height: 46px; min-height: 46px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: 0 4px 12px #0002; }
  .host-chat-entry span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .host-chat-entry:is(:hover,:focus-visible) span { width: max-content; max-width: min(220px, calc(100vw - 90px)); height: auto; clip: auto; clip-path: none; right: 54px; bottom: 5px; padding: 8px 12px; border-radius: 8px; background: var(--theme-surface, var(--paper)); color: var(--ink); box-shadow: 0 3px 14px #0002; white-space: normal; pointer-events: none; }
  .site-footer { padding-bottom: max(76px, calc(20px + env(safe-area-inset-bottom))); }

  @media (max-width: 1300px) {
    .nw-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .nw-sidebar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: start; }
    .nw-unread { gap: 14px; padding: 10px 0; font-size: .85rem; }
    .nw-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible; }
    .nw-settings { grid-column: 1/-1; margin: 0; }
    .nw-settings summary { width: fit-content; min-height: 32px; }
  }
  @media (max-width: 1100px) {
    #program-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #program-filter > button { justify-self: start; }
  }
  @media (max-width: 900px) {
    /* Navigation uses native buttons and stays in flow, so it cannot cover the page. */
    .app-shell.with-sidebar { display: block; }
    .app-shell.with-sidebar .dashboard-nav { position: static; width: auto; height: auto; margin: 8px 16px 0; padding: 4px; overflow: visible; background: var(--theme-soft, #eef3f0); border-radius: 10px; }
    .app-shell.with-sidebar .dashboard-nav .nav-user { display: none; }
    .workspace-menu-toggle { display: flex; width: 100%; min-height: 44px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-align: left; }
    .workspace-menu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
    .workspace-menu-toggle:focus-visible { outline: 2px solid var(--theme-accent, var(--teal-700)); outline-offset: 2px; }
    .app-shell.with-sidebar .dashboard-nav nav { display: none; width: auto; }
    .app-shell.with-sidebar .dashboard-nav.is-menu-open nav { display: grid; gap: 14px; padding: 10px 4px 4px; }
    .dashboard-nav:is(.is-menu-open) :is(.cd-nav-group,.sw-nav-group) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
    .dashboard-nav.is-menu-open :is(.cd-nav-group,.sw-nav-group) > p { display: block; grid-column: 1/-1; margin: 6px 10px; }
    .app-shell.with-sidebar .dashboard-nav a { min-height: 44px; align-items: center; white-space: normal; overflow-wrap: anywhere; font-size: .82rem; }
    .app-shell.with-sidebar .dashboard-nav [data-logout] { justify-self: start; min-height: 44px; padding: 10px 12px; }
  }
  @media (max-width: 600px) {
    #main-content > .page:not(.pl-page) { padding-top: 22px; }
    .page > .page-heading { margin-bottom: 18px; gap: 12px; }
    #program-filter { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 12px; }
    #program-filter > button { justify-self: stretch; }
    .page:has(> #case-form) .service-page-banner { padding: 20px; }
    #case-form.form-card { padding: 16px; }
    .page:has(> #case-form) .case-wizard-progress { gap: 8px; }
    .ci-hero-work { min-height: 240px; padding-block: 28px; }
    .jc-hero { display: block; }
    .jc-hero h1 { max-width: none; }
    .jc-hero .jc-orbits { display: none; }
    .nw-sidebar { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .nw-unread { justify-content: start; padding: 0; }
    .nw-sidebar nav button { white-space: normal; text-align: left; }
    .nw-toolbar { flex-wrap: wrap; }
    .nw-search { flex-basis: 100%; max-width: none; }
    .nw-item { padding: 14px; gap: 10px; }
    .nw-item-meta time { margin-left: 0; }
    .host-chat-entry { width: 44px; height: 44px; min-height: 44px; }
  }
}
