/* calm.css — loaded last. One pattern each for the header, tabs, buttons, cards, chips, scope,
   map options, empty and loading states, on every tab. Uses the app's own colors and IBM Plex Sans.
   The approved direction is the Florida RPh study: lead with the job, one filled action per screen,
   explanations behind disclosure, every capability still one step away. */
:root{
 --calm-forest:#146d68;--calm-forest-dark:#0c5652;--calm-ink:#18343b;--calm-soft:#4f6570;--calm-line:#dce5e6;
 --calm-line-strong:#cfdddf;--calm-sage:#e8f0ee;--calm-page:#f5f7f8;--calm-paper:#fff;--calm-radius:10px;
 --calm-tabbar:64px
}

/* ---------- Buttons: one filled action per screen; everything else is outline or text ---------- */
.button.secondary,.button:not(.primary):not(.market-search-submit),.text-button,.icon-button,
#working-area-open,#map-band-toggle,#map-options-toggle,.atlas-controls button,.request-data,
.viz-button,.entity-switch button,.area-breadcrumb button,.local-lens button,.tool-toolbar button:not(.primary),
.plan-area-actions .button.secondary,.market-panel-actions .button.secondary,.heading-actions button,
.work-heading .button,.tutorial-actions .button.secondary,#working-area-dialog .button.secondary{
 background:transparent!important;box-shadow:none!important
}
.button.secondary,.request-data,.viz-button{border:1px solid var(--calm-line-strong)!important;color:var(--calm-forest)!important}
/* Hover darkens the outline only, so a hovered control never reads as a second filled action. */
@media(hover:hover){.button.secondary:hover,.request-data:hover,.viz-button:hover,.chip:hover,.next-card:hover{background:transparent!important;border-color:var(--calm-forest)!important}}
.link-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:transparent;color:var(--calm-forest);font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.link-button:hover{text-decoration:underline;text-underline-offset:3px}
.button.primary,.market-search-submit{background:var(--calm-forest)!important;border-color:var(--calm-forest)!important;color:#fff!important}

/* ---------- Header: brand, tabs, Quick guide link, Ask Scout outline ---------- */
.app-header{background:var(--calm-paper)}
.app-header .creator-credit,.header-meta,.primary-nav .icon,.quick-guide-button .icon,.quick-guide-button::after{display:none!important}
.identity strong{color:var(--calm-ink)}
.identity .identity-title{font-weight:500!important;color:var(--calm-soft)!important}
.quick-guide-button{background:transparent!important;border:0!important;color:var(--calm-forest)!important;font-weight:600;min-height:44px;padding:0 4px!important}
.quick-guide-button .guide-short{display:none!important}.quick-guide-button .guide-long{display:inline!important}
.primary-nav{background:transparent!important;box-shadow:none!important}
.primary-nav button{background:transparent!important;box-shadow:none!important;color:var(--calm-soft)!important;font-weight:600!important;font-size:14px!important;position:relative;min-height:44px}
.primary-nav button::before{display:none!important}
.primary-nav button[aria-current]{color:var(--calm-forest)!important}
.primary-nav button[aria-current]::after{content:'';position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;background:var(--calm-forest)}
.primary-nav .nav-label-group{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;white-space:nowrap}

/* ---------- Plan: lead with the job ---------- */
.market-entry .plan-start{max-width:720px}
.plan-eyebrow{margin:0 0 12px;color:var(--calm-forest);font-size:14px;font-weight:600}
.market-entry:not(.has-area-answer) h1{font-size:clamp(28px,3.1vw,44px)!important;line-height:1.15!important;letter-spacing:-.5px;color:var(--calm-ink);margin:0 0 16px!important;max-width:15em;text-wrap:balance}
.market-entry .plan-purpose{font-size:17px!important;line-height:1.6!important;color:var(--calm-soft);margin:0 0 20px!important;max-width:40em}
.market-entry .market-search-row{display:flex;gap:12px}
.market-entry #market-place{flex:1;min-height:56px;font-size:16px;border-radius:var(--calm-radius)}
.market-entry .market-search-submit{min-height:56px;padding:0 24px;border-radius:var(--calm-radius);font-size:16px;font-weight:600}
.start-with{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 4px}
.start-with>span{color:var(--calm-soft);font-size:14px;margin-right:4px}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:0 15px;border:1px solid var(--calm-line-strong);border-radius:999px;background:transparent;color:var(--calm-ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.region-more{position:relative}
.region-more>summary{display:inline-flex;align-items:center;min-height:40px;padding:0 6px;color:var(--calm-forest);font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.region-more>summary::-webkit-details-marker{display:none}
.region-more>summary::after{content:'';width:7px;height:7px;margin:-3px 0 0 8px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.region-more[open]>summary::after{margin-top:3px;transform:rotate(225deg)}
.region-more .market-picker{display:grid;gap:6px;margin:8px 0 0;font-size:13px;font-weight:600;color:var(--calm-ink);min-width:260px}
.plan-guide-action{margin-top:8px!important;width:auto!important;justify-content:flex-start!important;border:0!important}
.plan-guide-action .guide-lead{font-weight:600}
.map-preview{display:none}
.map-preview-art{
 --market-tone-0:color-mix(in srgb,#146d68 42%,#fff);--market-tone-1:color-mix(in srgb,#f0b35a 58%,#fff);
 --market-tone-2:color-mix(in srgb,#526fba 34%,#fff);--market-tone-3:color-mix(in srgb,#4f6570 28%,#fff);
 --market-tone-4:color-mix(in srgb,#0c5652 18%,#fff);--forest:#146d68;--line:#dce5e6
}
.market-entry .plan-more{margin-top:24px!important;padding-top:24px;border-top:1px solid var(--calm-line);background:transparent!important;min-block-size:0!important;max-width:720px}
.market-scope-note{margin:0 0 16px;color:var(--calm-soft);font-size:14px}
.market-scope-note .link-button{min-height:0;display:inline}
.next-cards>*{margin:0!important}
.next-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.next-card{display:block;width:100%;margin:0;padding:18px 20px;border:1px solid var(--calm-line);border-radius:var(--calm-radius);background:transparent!important;color:var(--calm-ink);font:inherit;text-align:left;cursor:pointer}
.next-card>strong,.next-card>summary>strong{display:block;text-wrap:balance;font-size:16px;font-weight:600;color:var(--calm-ink);margin-bottom:6px}
.next-card>span,.next-card>summary>span{display:block;font-size:14px;line-height:1.45;color:var(--calm-soft)}
.next-card.plan-outreach{padding:0}
.next-card.plan-outreach>summary{display:block!important;padding:18px 20px;cursor:pointer;list-style:none}
.next-card.plan-outreach>summary::-webkit-details-marker{display:none}
.next-card.plan-outreach>div{border-top:1px solid var(--calm-line);padding:14px 20px 18px}
.next-card.plan-outreach>div p{margin:0 0 12px;font-size:14px;color:var(--calm-soft)}
.evidence-footnote{margin:20px 0 0;font-size:13px;line-height:1.6;color:var(--calm-soft);max-width:44em}
.evidence-footnote strong{font-weight:600;color:var(--calm-soft)}

/* Selected area answer: the same heading, one filled action, quiet secondary */
.plan-area-answer h1{font-size:clamp(26px,2.6vw,34px)!important}
.plan-area-answer .market-eyebrow,.market-eyebrow{letter-spacing:.6px}

/* ---------- Scope: one line that says where the evidence comes from; the why is behind disclosure ---------- */
.scope-evidence-banner{display:block!important;margin:0 0 20px!important;padding:0!important;background:transparent!important;border:0!important;font-size:14px;color:var(--calm-soft)}
.scope-evidence-banner>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:44px;cursor:pointer;list-style:none}
.scope-evidence-banner>summary::-webkit-details-marker{display:none}
.scope-evidence-banner>summary strong{color:var(--calm-ink);font-weight:600}
.scope-evidence-banner>summary .scope-why{color:var(--calm-forest);font-weight:600}
.scope-evidence-banner>p{margin:0 0 8px;line-height:1.55;max-width:46em}
.scope-evidence-banner [data-open-scope]{min-height:44px}

/* ---------- Map: options live on the map ---------- */
#map-options-toggle{display:none}
#map-options-toggle{display:inline-flex!important;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--calm-line-strong)!important;border-radius:var(--calm-radius);color:var(--calm-ink)!important;font-weight:600;font-size:14px}
#persistent-atlas:not([data-map-options]) :is(.atlas-layer-label,.atlas-controls){display:none!important}
#persistent-atlas[data-map-options] #map-options-toggle{color:var(--calm-forest)!important;border-color:var(--calm-forest)!important}
#atlas-layout[data-tab=recruit] #working-area-open{display:none!important}
#atlas-layout #map-band-toggle{display:none!important}

.atlas-controls button,#working-area-open,#map-band-toggle{border:1px solid var(--calm-line-strong)!important;color:var(--calm-ink)!important}
#atlas-caption{align-self:start;justify-self:start;margin:0;padding:6px 14px;border:1px solid var(--calm-line);border-radius:999px;font-size:12px;color:var(--calm-soft)}
.atlas-plan-hint{display:none!important}
#atlas-map[data-zip-loading]::after{content:'Loading ZIP areas';position:absolute;right:12px;top:12px;padding:6px 12px;border-radius:999px;background:#ffffffe6;border:1px solid var(--calm-line);font-size:12px;color:var(--calm-soft);pointer-events:none}
#atlas-map{position:relative}

/* ---------- Work headings on Map, Compare and Insights: title, one purpose line, quiet actions ---------- */
.work-heading h1,.insights-workspace h1,.compare-workspace h1{font-size:28px!important;line-height:1.2!important;color:var(--calm-ink)}
.heading-sub{font-size:15px!important;color:var(--calm-soft)!important}

/* Tabs inside a page (Insights topics, Sources, market panel): the same underline as the main tabs */
.chart-topic-nav button,.source-topic-nav button,.section-navigation button,.market-section-nav button{background:transparent!important;box-shadow:none!important;border-radius:0!important;position:relative}
.chart-topic-nav button[aria-current],.chart-topic-nav button[aria-selected=true],.chart-topic-nav button.active,
.source-topic-nav button[aria-current],.source-topic-nav button[aria-selected=true],.source-topic-nav button.active,
.section-navigation button[aria-current],.section-navigation button.active,.section-navigation button[aria-selected=true]{color:var(--calm-forest)!important;box-shadow:inset 0 -2px 0 var(--calm-forest)!important}

/* Cards: one white card pattern */
.viz-panel,.market-evidence-section,.compare-empty,.empty-state{border-radius:var(--calm-radius)}

/* ---------- Loading: a skeleton in the app's shape, no spinner, no jump. The shimmer plays twice
   (about three seconds) and then rests, so a slow load never leaves ten loops running. ---------- */
.calm-skeleton{display:grid!important;align-content:start;gap:14px;padding:72px clamp(20px,5vw,72px);max-width:800px}
.calm-skeleton .sk{display:block;border-radius:8px;background:linear-gradient(90deg,#e8eeef 0%,#f1f5f5 50%,#e8eeef 100%);background-size:200% 100%;animation:calm-shimmer 1.6s ease-in-out 2}
.sk-eyebrow{width:180px;height:14px}.sk-title{width:min(560px,90%);height:40px}.sk-title.short{width:min(380px,70%)}.sk-line{width:min(600px,95%);height:16px;margin-top:6px}
.sk-row{display:flex;gap:12px;align-items:center}.sk-field{flex:1;max-width:500px;height:56px}.sk-button{width:146px;height:56px}.sk-chip{width:96px;height:36px;border-radius:999px!important}
@keyframes calm-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.calm-skeleton .sk{animation:none}}

/* ---------- Desktop and tablet landscape ---------- */
@media(min-width:901px){
 .market-entry:not(.has-area-answer) .plan-start{padding-top:clamp(24px,5vh,64px)}
 #atlas-layout[data-tab=recruit] .atlas-topline{justify-content:flex-start}
}
@media(min-width:1101px){#atlas-layout .chip,#atlas-layout .region-more>summary{min-height:44px!important}}
@media(max-width:1100px){.chip,.region-more>summary{min-height:44px}}

/* ---------- Tablet and phone: tabs at the bottom for thumb reach ---------- */
@media(max-width:900px){
 .primary-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:100!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0!important;padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;background:#fff!important;border:0!important;border-top:1px solid var(--calm-line)!important;border-radius:0!important;height:auto!important;width:100%!important;grid-column:auto!important;grid-row:auto!important}
 .primary-nav button{min-height:48px!important;font-size:14px!important;padding:0 4px!important;justify-content:center!important}
 .primary-nav button[aria-current]::after{top:2px;bottom:auto;left:28%;right:28%}
 #main{padding-bottom:calc(var(--calm-tabbar) + 24px + env(safe-area-inset-bottom))!important}
}

/* ---------- Phone: the task comes first; the map is a preview card that opens the Map tab ---------- */
@media(max-width:700px){
 html:has(#atlas-layout[data-plan-entry]){scroll-snap-type:none!important}
 .app-header{display:flex!important;align-items:center!important;justify-content:space-between!important;height:60px!important;min-height:60px!important;padding:0 16px!important;gap:12px!important}
 .app-header .identity strong.identity-title{display:block!important;font-size:11px!important;line-height:14px!important}
 .app-header .identity strong{font-size:17px!important}
 .app-header .brand-mark{width:30px!important;height:30px!important}
 .app-header .quick-guide-button{display:none!important}
 #scout-launch.scout-inline{width:auto!important;min-width:0!important;height:44px!important;padding:0 14px!important}
 #scout-launch.scout-inline .scout-chip-face,#scout-launch .scout-launch-copy small{display:none!important}
 #scout-launch.scout-inline .scout-launch-copy,#scout-launch.scout-inline>span:last-child{display:inline!important}
 #atlas-layout[data-tab=recruit] #persistent-atlas{display:none!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) #persistent-atlas{padding:8px 16px!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) #persistent-atlas>:not(.atlas-topline){display:none!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) .atlas-topline>:not(.atlas-scope-controls),
 #atlas-layout:not([data-tab=explore]) #map-options-toggle{display:none!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) #working-area-open{width:100%}
 .market-entry .plan-start{display:block!important;min-block-size:0!important;padding:24px 0 0!important}
 .market-entry:not(.has-area-answer) h1{font-size:28px!important}
 .market-entry .plan-purpose{font-size:15px!important;margin-bottom:16px!important}
 .market-entry .market-search-row{flex-direction:column;gap:12px}
 .market-entry #market-place,.market-entry .market-search-submit{width:100%;min-height:52px}
 .start-with{margin-top:14px}
 .start-with>span{width:100%}
 .plan-guide-action .guide-lead{display:none}
 .chip{min-height:44px}
 .map-preview{display:block;position:relative;width:100%;height:150px;margin:12px 0 0;padding:0;border:1px solid var(--calm-line);border-radius:12px;overflow:hidden;background:transparent!important;cursor:pointer}
 .map-preview-art{position:absolute;inset:0;background:var(--calm-sage)}
 .map-preview-art svg{width:165%;height:auto;margin:-3% 0 0 -6%}
 .map-preview-label{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 15px;border-radius:999px;background:#fff;border:1px solid var(--calm-line);color:var(--calm-forest);font-weight:600;font-size:14px}
 .next-cards{grid-template-columns:1fr;gap:12px}
 .app-footer{position:static!important;display:flex!important;flex-wrap:wrap;gap:8px 16px;margin:32px -16px 0;padding:16px!important;border-top:1px solid var(--calm-line);background:transparent!important;height:auto!important}
 .app-footer .footer-note{display:none}
}

/* ---------- Secondary actions that were drawn as filled ---------- */
.market-entry.has-area-answer .market-search-submit{background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
[data-local-clear],#working-place-form button[type=submit],.scout-prompts button,.scout-next{background:transparent!important;border:1px solid var(--calm-line-strong)!important;color:var(--calm-forest)!important;box-shadow:none!important}
.scout-prompts button:hover,.scout-next:hover{background:transparent!important;border-color:var(--calm-forest)!important}

/* ---------- Scope chip: the working area by name, on every tab except Plan ---------- */
#working-area-open .area-label,#working-area-open .area-short{display:none!important}
#working-area-open #working-area-summary{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;margin:0!important;white-space:nowrap;font-weight:600}
#working-area-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px!important;border-radius:var(--calm-radius)!important}
#working-area-open::before{content:'Area';font-weight:500;color:var(--calm-soft);font-size:13px}
.scope-evidence-banner>summary strong{display:none}
.scope-evidence-banner>summary{min-height:32px}

/* ---------- Each tab's one filled action ---------- */
/* Map: search the map */
.tool-search #search-go{background:var(--calm-forest)!important;color:#fff!important;border-radius:8px!important;min-width:44px!important;min-height:44px!important}
/* Insights: the first panel's next step */
#pipeline-content .calm-primary-unused{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px!important;border-radius:8px!important;background:var(--calm-forest)!important;color:#fff!important;border:1px solid var(--calm-forest)!important;text-decoration:none!important;font-weight:600}
/* Opening Plan outreach makes the planner the moment's action; the search steps back. */
.market-entry:has(.plan-outreach[open]):has(#market-place:placeholder-shown) .market-search-submit{background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
.market-entry:has(#market-place:placeholder-shown) .plan-outreach[open] [data-recruit-goal]{background:var(--calm-forest)!important;color:#fff!important;border-color:var(--calm-forest)!important}
.next-card.plan-outreach summary>span,.next-card.plan-outreach[open] summary>span{transform:none!important;font-size:14px!important}
/* A dialog's action is the only filled one while it is open. */
body:has(dialog[open] :is(.button.primary,button[type=submit]):not(:disabled)) :is(#main,#persistent-atlas) :is(.button.primary,.market-search-submit,#search-go,.calm-primary){background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
.compare-how{margin-top:20px;text-align:left}
.compare-how>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--calm-forest);font-weight:600;font-size:14px;cursor:pointer}
.compare-empty>p{max-width:34em;margin-inline:auto}

.request-data-primary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px!important;border-radius:8px!important;text-decoration:none}
.request-data-primary .icon{width:16px;height:16px}

.chart-tool-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.insight-outreach{min-height:44px;white-space:nowrap}

/* ---------- Local area card (Map tab): name and count, then radius, Clear and how it works ---------- */
.local-lens-bar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 10px!important;padding:12px 14px!important;min-height:0!important;height:auto!important;background:transparent!important;border:1px solid var(--calm-line)!important;border-radius:var(--calm-radius)!important;box-shadow:none!important}
.local-lens-bar>strong{flex:1 1 auto;font-size:14px!important;font-weight:600!important;color:var(--calm-ink)!important}
.local-lens-sites{order:2;flex:0 0 100%;font-size:13px!important;font-weight:500!important;color:var(--calm-soft)!important}
.local-lens-bar>label{order:3}
.local-lens-bar [data-local-clear]{order:4;min-height:44px!important;padding:0 14px!important;font-size:13px!important}
.local-lens-bar select{min-height:44px!important;font-size:13px!important}
.local-lens-methods{order:5;flex:1 1 auto;width:auto!important;text-align:right}
.local-lens-methods>summary{display:inline-flex!important;align-items:center;min-height:44px;font-size:13px!important;font-weight:600!important;text-decoration:none!important;color:var(--calm-forest)!important}
.local-lens-methods[open]{flex-basis:100%;text-align:left}
.local-lens-methods p{font-size:13px!important}

/* ---------- Map tab on phone: scope and layer on top, a real map, tools under it ---------- */
@media(max-width:700px){
 #atlas-layout[data-tab=explore] #persistent-atlas{display:grid!important;grid-template-rows:auto auto auto auto!important;gap:10px!important;padding:12px 16px!important;height:auto!important}
 #atlas-layout[data-tab=explore] .atlas-topline{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center}
 #atlas-layout[data-tab=explore] .atlas-scope-controls{display:contents!important}
 #atlas-layout[data-tab=explore] #working-area-open{grid-column:1/-1;width:100%;justify-content:flex-start}
 #atlas-layout[data-tab=explore] #map-band-toggle{grid-column:2;grid-row:2;min-height:44px;padding:0 14px!important;border-radius:var(--calm-radius)!important}
 #atlas-layout[data-tab=explore] .atlas-layer-label{grid-column:1;grid-row:2;width:100%!important;margin:0!important;position:static!important}
 #atlas-layout[data-tab=explore] #atlas-layer{width:100%!important;max-width:none!important}
 #atlas-layout[data-tab=explore][data-map-band=open] #atlas-map{height:clamp(260px,42vh,380px)!important;min-height:260px!important;border-radius:12px;overflow:hidden;position:relative!important;inset:auto!important}

 #atlas-layout[data-tab=explore] .atlas-controls button{flex:0 0 auto;min-width:44px!important;padding:0 12px!important}
 #atlas-layout[data-tab=explore] #atlas-caption{display:none}
}

/* Segmented topic switches inside a panel (hiring Offers / Channels / Employee voice): the tab underline */
[id^=hiring-tab-]{background:transparent!important;box-shadow:none!important;border-radius:0!important}
[id^=hiring-tab-][aria-selected=true],[id^=hiring-tab-][aria-pressed=true],[id^=hiring-tab-].active{color:var(--calm-forest)!important;box-shadow:inset 0 -2px 0 var(--calm-forest)!important}

/* ---------- Phone layout: no fixed map band. Plan is the task alone; Map scrolls as one page ---------- */
@media(max-width:700px){
 #atlas-layout[data-tab=recruit]{grid-template-rows:minmax(0,1fr)!important}
 #atlas-layout:not([data-tab=recruit]):not([data-tab=explore]){grid-template-rows:auto minmax(0,1fr)!important}
 #atlas-layout[data-tab=explore]{display:block!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:calc(var(--calm-tabbar) + 24px + env(safe-area-inset-bottom))}
 #atlas-layout[data-tab=explore] #main{overflow:visible!important;height:auto!important;padding-bottom:0!important}
 #atlas-layout[data-tab=explore] #persistent-atlas{overflow:visible!important}
}

/* Page headings on phones: title and purpose first, actions on their own row */
@media(max-width:700px){
 .chart-tool-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 .chart-tool-heading>div:first-child{display:block!important}
 .chart-tool-heading>div:first-child>span{display:block;margin-top:6px}
 .chart-tool-actions{justify-content:flex-start}
 .work-heading{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
}

/* Scout: ask first, three starter questions, the rest behind More questions */
#scout-dialog .scout-instruction{margin:8px 0 16px!important;font-size:13px!important;color:var(--calm-soft)!important}
#scout-dialog .scout-prompts-label{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--calm-ink)}
#scout-dialog .scout-prompts{grid-template-columns:1fr!important;margin-bottom:8px!important}
#scout-dialog .scout-more-prompts>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--calm-forest);font-weight:600;font-size:14px;cursor:pointer}
#scout-dialog #scout-results:empty{display:none}
#scout-dialog #scout-form button[type=submit]{background:var(--calm-forest)!important;color:#fff!important}

/* ---------- Tablet portrait (701 to 900): the phone's task-first Plan with the map card, and the
   Map tab as one scrolling page, at a wider measure ---------- */
@media(min-width:701px) and (max-width:900px){
 #atlas-layout[data-tab=recruit] #persistent-atlas{display:none!important}
 #atlas-layout[data-tab=recruit]{grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important}
 .map-preview{display:block;position:relative;width:100%;max-width:720px;height:200px;margin:16px 0 0;padding:0;border:1px solid var(--calm-line);border-radius:12px;overflow:hidden;background:transparent!important;cursor:pointer}
 .map-preview-art{position:absolute;inset:0;background:var(--calm-sage)}
 .map-preview-art svg{width:120%;height:auto;margin:-2% 0 0 -4%}
 .map-preview-label{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid var(--calm-line);color:var(--calm-forest);font-weight:600;font-size:14px}
 #atlas-layout:not([data-tab=recruit]):not([data-tab=explore]){grid-template-rows:auto minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) #persistent-atlas{padding:10px 24px!important}
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) #persistent-atlas>:not(.atlas-topline),
 #atlas-layout:not([data-tab=explore]):not([data-tab=recruit]) .atlas-topline>:not(.atlas-scope-controls),
 #atlas-layout:not([data-tab=explore]) #map-options-toggle{display:none!important}
 #atlas-layout[data-tab=explore]{display:block!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:calc(var(--calm-tabbar) + 24px)}
 #atlas-layout[data-tab=explore] #main{overflow:visible!important;height:auto!important;padding-bottom:0!important}
 #atlas-layout[data-tab=explore] #persistent-atlas{overflow:visible!important;height:auto!important}
 #atlas-layout[data-tab=explore][data-map-band=open] #atlas-map{height:clamp(320px,44vh,480px)!important;border-radius:12px;overflow:hidden}
 .app-footer{position:static!important;display:flex!important;flex-wrap:wrap;gap:8px 16px;margin:40px 0 0;padding:16px 0!important;border-top:1px solid var(--calm-line);background:transparent!important;height:auto!important}
 .app-footer .footer-note{display:none}
}

/* No scroll snapping on phones and tablets: sections scroll freely and the footer is always reachable. */
@media(max-width:900px){#main,#atlas-layout{scroll-snap-type:none!important}.app-footer{scroll-snap-align:end}}
@media(max-width:900px){#main>.app-footer{padding-bottom:calc(var(--calm-tabbar) + 24px + env(safe-area-inset-bottom))!important}}

/* Section title above the next-step cards */
.plan-more-title{margin:0 0 14px!important;font-size:15px!important;font-weight:600!important;color:var(--calm-ink)!important;letter-spacing:0}
/* Filled actions read as the main action: 600 weight everywhere */
.button.primary,.market-search-submit,#search-go,.request-data-primary,dialog .button.primary{font-weight:600!important}
/* Map tab: the same title and purpose line as the other tabs; its launcher stays out of the way */
#atlas-layout .explore-workspace>.map-purpose{display:block!important;padding:0 0 12px!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important}
#atlas-layout .explore-workspace>.map-purpose .map-purpose-actions,.map-purpose .purpose-mobile,.map-purpose .purpose-short{display:none!important}
.map-purpose .purpose-desktop{display:inline!important}
.map-purpose h1{font-size:28px!important;line-height:1.2!important;margin:0 0 4px!important;color:var(--calm-ink)!important}
.map-purpose p{margin:0!important;font-size:15px!important;color:var(--calm-soft)!important}
@media(max-width:700px){.map-purpose h1{font-size:24px!important}.map-purpose p{font-size:14px!important}
 #atlas-layout[data-tab=explore][data-map-band=open] #atlas-map{height:clamp(240px,34vh,320px)!important;min-height:240px!important}}
.market-panel-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.market-panel-actions .button{min-height:44px}

#search-go .icon,#search-go svg{color:#fff!important;stroke:#fff!important}
/* The page itself never scrolls (main and the Map page do), so a stray scrollIntoView cannot shift the
   app under the fixed tab bar and strand the footer link off screen. */


.next-card[data-market-compare]{display:block!important}
/* A primary that cannot be used yet is drawn as an outline until it can. */
dialog .button.primary:disabled{background:var(--calm-forest)!important;color:#fff!important;opacity:.45}
/* Close buttons are quiet everywhere */
[data-close-market],[data-close-dialog],[data-close-working]{background:transparent!important;box-shadow:none!important}
/* Empty states: one card, sized to its content */
.compare-empty{min-height:0!important;display:block!important;padding:28px 24px!important;text-align:center}
.compare-empty h2{margin-top:0!important}

/* ---------- Round 2 review fixes ---------- */
/* Map tab: the map is always shown there; Map options holds layer, zoom, fit and key on every tab */
#atlas-layout[data-tab=explore] #atlas-map{display:block!important}
#map-options-toggle{align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--calm-line-strong)!important;border-radius:var(--calm-radius);color:var(--calm-ink)!important;font-weight:600;font-size:14px}
@media(max-width:900px){
 #atlas-layout[data-tab=explore] #map-options-toggle{display:inline-flex!important;grid-column:2;grid-row:1}
 #atlas-layout[data-tab=explore] #working-area-open{grid-column:1!important}
}
/* Selected region: deeper sage, not the action teal */
.atlas-svg{--map-chosen:color-mix(in srgb,#146d68 58%,#e8f0ee)}
/* Headings and counts in the app's ink; stat values in IBM Plex Sans */
dialog h2,#working-area-title,#dialog-title,.compare-empty h2,.tutorial-step h2,#quick-guide h2{color:var(--calm-ink)!important}
.plan-area-facts dd,.market-fact dd,.result-number,.result-number strong,.compare-summary strong{font-family:'IBM Plex Sans',sans-serif!important;color:var(--calm-ink)!important}
.plan-area-facts dd{font-size:24px!important;font-weight:600!important;line-height:1.25!important}
.plan-area-facts dd.market-fact-text,.plan-area-facts dd:not(:has(*)){overflow-wrap:normal}
.market-fact dd{font-weight:600!important}
/* Programmatic focus on a heading is for screen readers, not a box on screen */
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus,section[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}
/* Focus rings in the app's teal */
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--calm-forest)!important;outline-offset:2px}
#market-place:focus,#search:focus,#working-place:focus,#scout-question:focus{border-color:var(--calm-forest)!important;box-shadow:0 0 0 3px #146d6826!important;outline:none!important}
.chip:focus:not(:focus-visible){border-color:var(--calm-line-strong)!important}
/* Sibling cards match: regular subtitles; an open card shows a collapse chevron */
.next-card>summary>span,.next-card>span{font-weight:400!important}
.next-card[open]>summary>strong>span[aria-hidden]{display:inline-block;transform:rotate(-90deg)}
.region-more{display:inline-flex;align-items:center}
.region-more>summary{border:1px solid transparent;border-radius:999px;padding:0 14px!important}
/* Page headings stack below 1100px: title, then the purpose line, then actions */
@media(max-width:1100px){
 .chart-tool-heading,.work-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
 .chart-tool-heading>div:first-child>span,.work-heading .heading-sub{display:block!important;margin-top:6px!important;max-width:none!important}
 .chart-tool-actions,.heading-actions{position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start!important;width:auto!important;transform:none!important}
}
/* Insights: when a topic needs a different area first, that is the one filled action */
.insights-workspace:has(#pipeline-content .button.primary) .insight-outreach{background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
#pipeline-content .viz-panel .button{margin-top:14px}
/* Compare: the empty card reads like the rest of the app; market comparison waits in a quiet card */
.compare-empty{text-align:left!important;max-width:none!important;margin:16px 0!important}
.compare-empty h2{font-size:20px!important;line-height:1.3!important}
.compare-empty>p{margin-inline:0!important}
.compare-empty-steps{text-align:left}
.market-comparison-more{margin-top:20px;padding:0!important}
.market-comparison-more>summary{display:block;padding:18px 20px;cursor:pointer;list-style:none}
.market-comparison-more>summary::-webkit-details-marker{display:none}
.market-comparison-more>summary>strong{display:block;font-size:16px;font-weight:600;color:var(--calm-ink);margin-bottom:4px}
.market-comparison-more>summary>strong::after{content:' →'}
.market-comparison-more[open]>summary>strong::after{content:''}
.market-comparison-more>.market-comparison{padding:0 20px 20px;border-top:1px solid var(--calm-line)}
/* Map key legend as swatches */
#info-dialog .legend-scale{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0}
#info-dialog .legend-scale span{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--calm-ink)}
#info-dialog .legend-scale i{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid #0000001a}
#info-dialog p{color:var(--calm-soft)!important}
/* Scout: a full-height panel with the app's white header, no dimmed page behind it */
#scout-dialog::backdrop{background:transparent!important;backdrop-filter:none!important}
#scout-dialog .scout-head{background:#fff!important;color:var(--calm-ink)!important;border-bottom:1px solid var(--calm-line)}
#scout-dialog .scout-head small{color:var(--calm-forest)!important}
#scout-dialog .scout-head p{color:var(--calm-soft)!important}
#scout-dialog .scout-head button{color:var(--calm-ink)!important;background:transparent!important;border:1px solid var(--calm-line-strong)!important}
@media(min-width:601px){#scout-dialog{inset:76px 16px 16px auto!important;height:auto!important;max-height:none!important;border-radius:12px!important;box-shadow:0 12px 40px #16343c2e!important}}
@media(max-width:600px){#scout-dialog{inset:60px 0 0 0!important;max-height:none!important;height:auto!important;border-radius:0!important}#scout-dialog .scout-main{max-height:calc(100dvh - 60px - 150px)!important}}
/* Working area dialog: ink title aligned with its body, room above each label */
#working-area-dialog .dialog-head h2{margin:0!important;padding:0!important}
#working-area-dialog label{margin-top:16px!important}
/* Other dialogs: no dimmed blur */
dialog:not(#scout-dialog)::backdrop{background:#132e3866!important;backdrop-filter:blur(2px)!important}
/* List counts in ink, not periwinkle */
.result-number,.result-number *{color:var(--calm-ink)!important}
/* 1024 Plan: tighter top so the next steps sit higher */
@media(min-width:901px) and (max-width:1100px){
 .market-entry:not(.has-area-answer) .plan-start{padding-top:12px!important}
 .market-entry:not(.has-area-answer) h1{font-size:30px!important}
 .market-entry .plan-purpose{font-size:15px!important;margin-bottom:14px!important}
 .next-cards{grid-template-columns:1fr!important}
}
/* Icon-only actions get their words */
.chart-tool-actions [data-share-view]::after,.heading-actions [data-share-view]::after{content:'Share';margin-left:6px;font-size:13px;font-weight:600}
.chart-tool-actions [data-share-view],.heading-actions [data-share-view]{width:auto!important;padding:0 12px!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important;border-radius:8px!important;min-height:44px}

/* Map preview card: the whole state with its city labels, beside the call to open the map */
.map-preview-art svg{position:absolute;inset:8px 8px 8px 45%!important;width:auto!important;height:calc(100% - 16px)!important;margin:0!important}
@media(max-width:700px){.map-preview{height:180px!important}.map-preview-art svg{inset:6px 6px 6px 40%!important}.map-preview-label{top:50%;bottom:auto!important;transform:translateY(-50%)}}

/* Text-valued facts (for example "Not available at this scale") read as a note, not a number */
.plan-area-facts dd.market-fact-text,.plan-area-facts dd:not(:has(*)):not(:first-letter){}
.plan-area-facts dd.fact-note{font-size:16px!important;font-weight:500!important;color:var(--calm-soft)!important}

/* ---------- Round 2, second review ---------- */
/* Search field clear button in ink */
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;cursor:pointer;background:center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%2318343b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
/* Results: one search control, folded */
.change-area{margin-top:16px;padding-top:0;border-top:0;max-width:720px}
.change-area>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;font-weight:600;color:var(--calm-forest);cursor:pointer;list-style:none}
.change-area>summary::-webkit-details-marker{display:none}
.change-area>summary::after{content:'';width:7px;height:7px;margin-top:-3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.change-area[open]>summary::after{margin-top:3px;transform:rotate(225deg)}
.change-area[open]>summary{margin-bottom:8px}
.market-eyebrow{text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:600!important;color:var(--calm-forest)!important}
.plan-area-facts dd.fact-note{font-size:15px!important;font-weight:500!important;line-height:1.4!important;color:var(--calm-soft)!important}
.plan-area-actions{align-items:center}
.plan-area-actions .link-button{flex:0 0 auto}
.plan-area-actions .button.primary{flex:0 0 auto!important}
/* Map lists: counts stay with their nouns */
#result-count{white-space:nowrap}
.tool-toolbar [data-share-view]::after{content:'Share';margin-left:6px;font-size:13px;font-weight:600}
.tool-toolbar [data-share-view]{width:auto!important;padding:0 12px!important;color:var(--calm-forest)!important}
/* Insights: one topic switcher at every width (the Chart topic select); sections scroll in order */
#main[data-tool=pipeline] .topic-next{display:none!important}
@media(min-width:1101px){#main[data-tool=pipeline] .chart-topic-wrap .chart-topic-nav{display:flex!important}#main[data-tool=pipeline] .chart-topic-wrap .navigation-chooser{display:none!important}}
@media(max-width:1100px){#main[data-tool=pipeline] .chart-topic-wrap .chart-topic-nav{display:none!important}#main[data-tool=pipeline] .chart-topic-wrap .navigation-chooser{display:grid!important;gap:6px;max-width:420px}}
#main[data-tool=pipeline] .chart-topic-wrap{border:0!important;margin:0 0 8px!important;padding:0!important}
#main[data-tool=pipeline] .section-navigation,#main[data-tool=sources] .section-navigation{display:none!important}
/* Hiring evidence keeps its Offers, Channels and Employee voice switch, drawn with the tab underline */
/* Schools: filters wait behind one control with their current values shown */
.calm-filters{margin:4px 0 12px}
.calm-filters>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--calm-line-strong);border-radius:8px;font-size:14px;font-weight:600;color:var(--calm-forest);cursor:pointer;list-style:none}
.calm-filters>summary::-webkit-details-marker{display:none}
.calm-filters>summary span{font-weight:500;color:var(--calm-soft)}
.calm-filters[open]>.education-controls{margin-top:10px}
/* Sources is a reading page: Request data is an outline action */
.request-data-primary{background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
.chart-tool-heading span{text-wrap:pretty}
.scope-evidence-banner{margin-bottom:12px!important}
@media(min-width:1101px){.chart-tool-actions{flex-wrap:nowrap!important;white-space:nowrap}}
/* Scout: sized to its content, a light scrim behind it */
#scout-dialog::backdrop{background:#16343c1f!important}
@media(min-width:601px){#scout-dialog{inset:auto 16px 16px auto!important;max-height:calc(100dvh - 92px)!important;height:auto!important}#scout-dialog[open]{display:flex;flex-direction:column}#scout-dialog .scout-main{overflow:auto}}
@media(max-width:600px){#scout-dialog{inset:auto 0 0 0!important;max-height:calc(100dvh - 60px)!important;height:auto!important;border-radius:16px 16px 0 0!important}}
.next-card.plan-outreach:not([open])>div{display:none!important}
.next-card.plan-outreach [data-recruit-goal]{background:transparent;color:var(--calm-forest);border:1px solid var(--calm-line-strong)}

/* ---------- Third review ---------- */
/* Area chip on Plan appears once an area is chosen */
#atlas-layout[data-tab=recruit][data-has-area] #working-area-open{display:inline-flex!important}
/* Phone header: Quick guide as a 44px icon beside Ask Scout */
@media(max-width:700px){
 .app-header .header-utilities{display:flex!important;align-items:center;gap:6px}
 .app-header .quick-guide-button{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0!important;border:1px solid var(--calm-line-strong)!important;border-radius:10px}
 .app-header .quick-guide-button{width:auto!important;padding:0 12px!important}
 .app-header .quick-guide-button .icon,.app-header .quick-guide-button .guide-long{display:none!important}
 .app-header .quick-guide-button .guide-short{display:inline!important;font-size:14px;font-weight:600}
}
/* Map scale reads above markers */
.map-scale text{paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.map-scale line,.map-scale path{filter:drop-shadow(0 0 1.5px #fff)}
/* Plan outreach card open: spans the row; a chevron, not a navigation arrow */
.next-card.plan-outreach[open]{grid-column:1/-1}
.next-card.plan-outreach>summary>strong>span[aria-hidden]{display:none!important}
.next-card.plan-outreach>summary>strong::after{content:'';display:inline-block;width:7px;height:7px;margin:0 0 3px 10px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.next-card.plan-outreach[open]>summary>strong::after{transform:rotate(225deg);margin-bottom:-1px}
.next-card:focus-within:not(:has(:focus-visible)){border-color:var(--calm-line)!important;box-shadow:none!important}
/* Insights and Sources: sections reached from one labelled Jump to section select */
#main[data-tool=pipeline] .section-navigation{display:none!important}
#main[data-tool=sources] .section-navigation{display:block!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0 0 12px!important;position:static!important}
#main[data-tool=pipeline] .section-navigation>div,#main[data-tool=sources] .section-navigation>div{display:none!important}
#main[data-tool=pipeline] .section-navigation .navigation-chooser,#main[data-tool=sources] .section-navigation .navigation-chooser{display:grid!important;gap:6px;max-width:420px}
.navigation-chooser>span{font-size:13px;font-weight:600;color:var(--calm-ink)}
/* Working area dialog: the current choice first; one column edge; Reset as a text link */
#working-area-dialog .working-current{margin:4px 0 4px!important;font-size:15px!important;color:var(--calm-ink)!important}
#working-area-dialog .working-note{margin:0 0 12px!important;font-size:13px!important}
#working-area-dialog .dialog-head{padding-inline:0!important}
#working-area-dialog [data-working-reset],#working-area-dialog .button.secondary{border:0!important;padding:0 4px!important;text-decoration:underline;text-underline-offset:3px}
.source-download{display:inline-flex;align-items:center;min-height:44px;padding:0 16px!important;border-radius:8px!important;text-decoration:none;white-space:nowrap}

/* ---------- Fourth review ---------- */
.navigation-chooser>span:not(.select-control-wrap){display:block!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;margin:0!important}
#main[data-tool=pipeline] .section-navigation .navigation-chooser>span::before,#main[data-tool=sources] .section-navigation .navigation-chooser>span::before{content:''}
.guide-label{text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:600!important;color:var(--calm-forest)!important}
.calm-more{position:relative}
.calm-more>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--calm-line-strong);border-radius:8px;font-size:14px;font-weight:600;color:var(--calm-forest);cursor:pointer;list-style:none;white-space:nowrap}
.calm-more>summary::-webkit-details-marker{display:none}
.calm-more>summary::after{content:'';width:7px;height:7px;margin-top:-3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.calm-more[open]>summary::after{margin-top:3px;transform:rotate(225deg)}
.calm-more>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
@media(min-width:701px){.calm-more>div{position:absolute;right:0;top:100%;z-index:20;padding:10px;background:#fff;border:1px solid var(--calm-line);border-radius:10px;box-shadow:0 8px 24px #16343c1f}}
.sources-workspace .source-topic-nav{margin-top:4px!important}
.sources-workspace .scope-evidence-banner{margin-bottom:4px!important}
.chart-tool-heading>div:first-child>span{text-wrap:balance}
/* Counties layer: the county list comes first; the pharmacy radius card is for the pharmacy layer */
.explore-workspace[data-browse=counties] .local-lens-slot,.explore-workspace[data-browse=zips] .local-lens-slot{display:none!important}

.navigation-chooser .select-control-wrap{position:relative!important;display:block}
.navigation-chooser .select-control-wrap .select-chevron{top:50%!important;right:14px!important;transform:translateY(-50%)!important}
/* While a dialog is open, nothing behind it is filled */
body:has(dialog[open]:not(#scout-dialog)) :is(#main,#persistent-atlas) :is(.button.primary,.market-search-submit,#search-go,.calm-primary){background:transparent!important;color:var(--calm-forest)!important;border:1px solid var(--calm-line-strong)!important}
@media(max-width:700px){.app-header .quick-guide-button{padding:0 10px!important;font-size:13px}.app-header .quick-guide-button .guide-short{font-size:13px!important}#scout-launch.scout-inline{padding:0 12px!important}.app-header{gap:8px!important}}

/* ---------- Round 3 ---------- */
/* Insights: four group tabs; the topics inside a group as one small row */
#main[data-tool=pipeline] .chart-topic-nav{gap:4px;border-bottom:1px solid var(--calm-line);margin-bottom:12px!important;overflow:visible!important}
#main[data-tool=pipeline] .chart-topic-nav button{min-height:44px;padding:0 14px!important;font-size:14px!important;font-weight:600!important;color:var(--calm-soft)!important}
#main[data-tool=pipeline] .chart-topic-nav button[aria-current]{color:var(--calm-forest)!important}
.topic-subnav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.topic-subnav button{min-height:40px;padding:0 14px;border:1px solid var(--calm-line-strong);border-radius:999px;background:transparent;color:var(--calm-ink);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.topic-subnav button[aria-current]{border-color:var(--calm-forest);color:var(--calm-forest);font-weight:600}
@media(max-width:1100px){.topic-subnav button{min-height:44px}}
.calm-inline-more{margin-top:12px}
.calm-inline-more>summary{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:var(--calm-forest);cursor:pointer;list-style:none}
.calm-inline-more>summary::-webkit-details-marker{display:none}
.calm-inline-more>div{display:flex;flex-wrap:wrap;gap:8px}
.viz-residual{margin:8px 0 0;font-size:13px;color:var(--calm-soft)}
/* Map tab: the local-area card is read-only; the radius is set from the Area chip */
.local-lens-bar>label,.local-lens-bar [data-local-clear]{display:none!important}
/* Map options: one popover on the map */
#persistent-atlas{position:relative}
#persistent-atlas[data-map-options] .atlas-layer-label{position:absolute!important;z-index:40;top:68px;left:16px;width:min(320px,calc(100% - 32px))!important;height:68px;margin:0!important;padding:12px 12px 12px!important;background:#fff!important;border:1px solid var(--calm-line);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:0 12px 32px #16343c24;grid-area:auto!important}
#persistent-atlas[data-map-options] .atlas-layer-label .select-control-wrap,#persistent-atlas[data-map-options] #atlas-layer{width:100%!important;max-width:none!important}
#persistent-atlas[data-map-options] .atlas-controls{position:absolute!important;z-index:40;top:136px;left:16px;width:min(320px,calc(100% - 32px))!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important;padding:0 12px 12px!important;background:#fff!important;border:1px solid var(--calm-line);border-top:0;border-radius:0 0 12px 12px;box-shadow:0 12px 32px #16343c24;grid-area:auto!important}
#persistent-atlas[data-map-options] .atlas-controls button{flex:1 1 auto;min-width:44px!important;min-height:44px!important}
@media(max-width:900px){#persistent-atlas[data-map-options] .atlas-layer-label{top:66px}#persistent-atlas[data-map-options] .atlas-controls{top:134px}}
/* Results: no empty band around Search another area; the next steps follow closely */
.market-entry.has-area-answer .plan-area-answer{padding-bottom:16px!important}
.market-entry.has-area-answer .change-area{margin-top:4px!important}
.market-entry.has-area-answer .plan-more{margin-top:8px!important;padding-top:16px!important}
.market-entry.has-area-answer .plan-more .map-preview{margin:0 0 16px!important}
/* Next steps: an open Plan outreach card keeps the pair even by stacking both */
.next-cards:has(.plan-outreach[open]){grid-template-columns:1fr!important}
.next-card.plan-outreach[open]{grid-column:auto}
#persistent-atlas[data-map-options] .atlas-controls #atlas-key{flex:0 0 44px}
/* Phones: the footer already clears the tab bar, so main needs no second bottom gap */
@media(max-width:900px){#main:has(>.app-footer){padding-bottom:0!important}}
@media(max-width:700px){
 .market-entry.has-area-answer .plan-more .map-preview{height:120px!important}
 .next-card{padding:14px 16px!important}
 .next-card.plan-outreach{padding:0!important}
 .next-card.plan-outreach>summary{padding:14px 16px!important}
 .evidence-footnote{margin-top:12px!important}
 .app-footer{margin-top:20px!important}
}
@media(max-width:700px){
 .market-entry.has-area-answer .plan-more .map-preview{height:96px!important}
 .market-entry.has-area-answer .plan-more{padding-top:12px!important}
 .plan-more-title{margin-bottom:10px!important}
 .app-footer{margin-top:12px!important}
}
.change-area.plan-start{padding-top:0!important;padding-block:0!important;min-block-size:0!important}
.market-entry.has-area-answer .plan-area-actions{margin-bottom:0}
/* ---------- Round 3 review ---------- */
#scout-dialog::backdrop{background:#132e3866!important;backdrop-filter:blur(2px)!important}
.market-entry.has-area-answer .plan-area-answer{max-width:720px}
.compare-workspace .field.compact>span{display:block!important}
.local-lens-bar{min-height:0!important}
.local-lens-slot{min-height:0!important;height:auto!important}
.result-number,.result-number strong,.result-number span{color:var(--calm-ink)!important}
.zip-group-pool strong,.zip-group-pool{color:var(--calm-ink)!important}
.topic-subnav button{line-height:26px}
/* ---------- Round 3, second pass ---------- */
/* Map tab: the strip names the area; the local card shrinks to its How this works link */
.local-lens-bar>strong,.local-lens-sites,.local-lens-icon{display:none!important}
.local-lens-bar{border:0!important;padding:0 4px!important;justify-content:flex-start!important}
.local-lens-methods{text-align:left!important;flex:1 1 auto}
/* Map toolbar: search on its own row, then Company, filters and Share on one row */
#atlas-layout .explore-workspace .tool-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;grid-template-columns:none!important;grid-template-rows:none!important;min-height:0!important;height:auto!important}
#atlas-layout .explore-workspace .tool-toolbar>.tool-search{flex:1 1 100%!important;grid-column:auto!important;grid-row:auto!important}
#atlas-layout .explore-workspace .tool-toolbar>*{grid-column:auto!important;grid-row:auto!important}
/* Phone Map options popover: wide enough for one row of tools */
@media(max-width:900px){#persistent-atlas[data-map-options] .atlas-layer-label,#persistent-atlas[data-map-options] .atlas-controls{width:calc(100% - 32px)!important;max-width:420px}
 #persistent-atlas[data-map-options] .atlas-controls{flex-wrap:nowrap!important}
 #persistent-atlas[data-map-options] .atlas-controls button{flex:0 1 auto!important;padding:0 10px!important}}
/* Compare: the reach select gets its own full row on phones, with what it does underneath */
.field-note{display:block;margin-top:4px;font-size:12px;font-weight:500;color:var(--calm-soft)}
@media(max-width:700px){.compare-workspace .heading-actions .field.compact{flex:1 1 100%!important;width:100%!important}.compare-workspace .heading-actions .field.compact select{width:100%!important}}
/* Map scale: outside the map frame on the caption row */
.atlas-scale{position:absolute;right:16px;bottom:18px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--calm-soft);pointer-events:none}
.atlas-scale-bar{display:inline-block;height:6px;border:1.4px solid var(--calm-soft);border-top:0}
@media(max-width:900px){#atlas-layout[data-tab=explore] .atlas-scale{position:static;justify-content:flex-end}}
/* ---------- Round 3, third pass ---------- */
.area-navigation-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.area-navigation-actions .local-lens-methods{order:-1;flex:0 0 auto;width:auto!important;text-align:left!important}
.area-navigation-actions .local-lens-methods[open]{flex-basis:100%}
#atlas-layout .explore-workspace .tool-toolbar>.tool-search{flex:1 1 320px!important}
#persistent-atlas[data-map-options] .atlas-layer-label,#persistent-atlas[data-map-options] .atlas-controls{width:min(380px,calc(100% - 32px))!important}
#persistent-atlas[data-map-options] .atlas-controls{flex-wrap:nowrap!important}
#persistent-atlas[data-map-options] .atlas-controls button{flex:0 1 auto!important;padding:0 10px!important}
@media(max-width:700px){
 #atlas-layout[data-tab=explore][data-map-band=open] #atlas-map{height:clamp(220px,30vh,270px)!important;min-height:220px!important}
 .plan-area-answer>h1{position:sticky;top:60px;z-index:5;background:var(--calm-page);padding:4px 0}
 #main>.app-footer{padding-bottom:calc(var(--calm-tabbar) + 8px + env(safe-area-inset-bottom))!important}
}
.map-more>div{align-items:center}
.map-more .employer-controls,.map-more .tool-field{margin:0!important}
@media(max-width:700px){.map-more{flex:0 0 auto}.map-more>div{flex-direction:column;align-items:stretch}}
/* ---------- Round 3, last pass ---------- */
/* Phone Map options open below the map so the map stays fully visible */
@media(max-width:700px){
 #atlas-layout[data-tab=explore] #persistent-atlas[data-map-options] .atlas-layer-label{top:calc(12px + 44px + 10px + clamp(220px,30vh,270px) + 8px)!important}
 #atlas-layout[data-tab=explore] #persistent-atlas[data-map-options] .atlas-controls{top:calc(12px + 44px + 10px + clamp(220px,30vh,270px) + 8px + 68px)!important}
 /* Results: the pinned area name reads as a header band; the footer closes the page without a band */
 .plan-area-answer>h1{margin:0 -16px 8px!important;padding:6px 16px!important;border-bottom:1px solid var(--calm-line)}
 #main>.app-footer{border-top:0!important;padding-top:4px!important;margin-top:8px!important}
}
@media(max-width:700px){#atlas-layout[data-tab=explore] #persistent-atlas{position:relative!important;z-index:60!important;overflow:visible!important}}
#persistent-atlas[data-map-options] .atlas-controls{justify-content:flex-start!important}
@media(max-width:700px){
 .plan-area-answer>.market-eyebrow{display:none!important}
 .plan-area-answer>h1::before{content:'Selected working area';display:block;margin-bottom:2px;font-size:13px;font-weight:600;letter-spacing:0;color:var(--calm-forest)}
 .plan-area-answer>h1{box-shadow:0 12px 10px -8px var(--calm-page)}
}
.nowrap{white-space:nowrap}
@media(max-width:700px){.area-navigation{flex-wrap:wrap!important}.area-navigation>.area-step{flex:1 1 100%}}
.area-navigation{flex-wrap:wrap!important;row-gap:4px}
.area-navigation>.area-step{flex:1 1 auto;min-width:min(100%,340px)}

/* Decided (delegated by Kevin): no Quick guide button in the phone header, as in the study.
   The guide stays one tap away from Plan's "Open the quick guide" link. */
@media(max-width:700px){.app-header .quick-guide-button{display:none!important}}
.viz-key{margin:0 0 10px;font-size:13px;color:var(--calm-soft)}

/* Ask Scout keeps a 44px touch target in every state, including before the app script runs */
#scout-launch{min-height:44px!important}

/* First paint: the county outline stands in for the map until the interactive map is ready. */
#atlas-map .boot-svg{display:block;width:100%;height:100%;background:var(--mint,#e8f0ee)}

/* The tagline sits under the name on every screen size. */
.app-header .identity>span{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0}
.app-header .identity strong.identity-title{display:block;font-size:12px;line-height:16px;font-weight:500;letter-spacing:0;white-space:nowrap}
.app-header .identity strong:first-child{line-height:1.1}

/* The public-information note: short, calm, with linked sources. */
.public-info-note,.scout-public-note{margin:10px 0 14px;font-size:13px;line-height:19px;color:var(--calm-soft,#526b73);max-width:60ch}
.public-info-note a,.scout-public-note a{color:var(--calm-forest,#146d68);text-decoration:underline;text-underline-offset:2px}
.scout-public-note{margin:8px 0 20px}

/* 11/11: Kevin's name sits on the first header line at every size, quiet but always visible. */
.identity-line{display:flex!important;align-items:baseline;gap:8px;min-width:0}
.identity-byline{display:inline!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:var(--calm-ink-soft,#5d7378)!important;white-space:nowrap}
@media(max-width:380px){.identity-byline{font-size:11px!important}}
.footer-author{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* 11/11: keep the credit and contact line on phones too. */
.app-footer .footer-context{display:block!important;font-size:12px;line-height:1.5}
.app-footer{min-height:44px!important}
.app-footer a{display:inline-flex;align-items:center;min-height:44px}
.app-footer .footer-context a{display:inline-flex!important;align-items:center;min-height:44px!important;padding:0!important;margin:0!important;vertical-align:middle}

/* ---------- Hiring pressure and Who you could hire (market panel) ---------- */
.market-pressure-lead{margin:0 0 8px;font-size:14px;line-height:1.5;color:var(--calm-soft)}
.history-progress{height:8px;margin:8px 0 4px;border-radius:4px;background:var(--calm-sage);overflow:hidden}
.history-progress>span{display:block;height:100%;border-radius:4px;background:var(--calm-forest)}
.history-progress-label{margin:0!important;font-size:12px!important;color:var(--calm-soft)!important}
.market-evidence-more>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--calm-forest);font-size:14px;font-weight:600;cursor:pointer}
.market-evidence-more>p{font-size:13px;line-height:1.55;color:var(--calm-soft);margin:8px 0 0}
/* No orphans, app wide: headings and short labels balance their lines, body text avoids a lone last word. */
h1,h2,h3,h4,h5,figcaption,summary,label,legend,.insight-heading{text-wrap:balance}
p,li,dd,dt,blockquote{text-wrap:pretty}
