/* One stable header, with thumb-friendly navigation on phones. */
:root {--app-header-height:76px;--bottom-tabs-height:0px;}
body {padding-top:var(--app-header-height);}
.top {position:fixed;inset:0 0 auto;z-index:60;background:#073C30;}
.top .top-in {height:76px;min-height:76px;display:flex;flex-wrap:nowrap;gap:16px;}
.top .nav {display:flex;gap:8px;position:static;flex:none;width:auto;justify-content:flex-start;}
.top .nav a {padding:22px 8px;white-space:nowrap;}
.header-tools {margin-left:auto;gap:12px;}
.account-menu {position:relative;color:white;flex:0 0 auto;}
.account-menu > summary {color:#fff;cursor:pointer;list-style:none;min-height:44px;padding:10px 8px;}
.account-menu > summary::-webkit-details-marker {display:none;}
.account-menu nav {position:absolute;right:0;top:100%;min-width:210px;padding:8px;background:#073C30;border:1px solid #6F9383;border-radius:10px;box-shadow:var(--shadow);}
.account-menu nav a {display:block;min-height:44px;padding:10px 12px;color:white;text-decoration:none;border-radius:6px;}
.account-menu nav a:hover,.account-menu nav a:focus-visible {background:#145643;}
.bottom-tabs {display:none;}
:where(h1,h2,h3,[id]) {scroll-margin-top:calc(var(--app-header-height) + 16px);}
#resultCount {scroll-margin-top:calc(var(--app-header-height) + 16px);}
.starting-row {display:flex;gap:12px;align-items:center;overflow-x:auto;scrollbar-width:thin;max-width:100%;}
.starting-row .starting-paths {flex:0 0 auto;margin:0;overflow:visible;}
.saved-search-chips {display:flex;flex:0 0 auto;gap:8px;align-items:center;white-space:nowrap;}
.saved-search-chip {background:#EDE7F6;border-color:#8D78A6;color:#493360;}
[data-theme=dark] .saved-search-chip {background:#352C43;color:#E8D8FF;border-color:#A18DB8;}
.saved-search-chips .linkbtn {min-height:40px;display:inline-flex;align-items:center;padding:8px;}
.personal-filters {display:grid;gap:6px;margin-block:8px 14px;}
.personal-filters .toggle {min-height:36px;}
.results-bar .match-facet {width:100%;margin:0;border:0;padding:0;}
.results-bar .match-facet .toggle {min-height:36px;font-size:13px;}
.card .side {display:flex;gap:6px;align-items:start;}
.card .side .btn {padding:7px 11px;min-height:38px;font-size:13px;}
.card .specialism-line {grid-column:1/-1;display:flex;gap:6px;overflow:hidden;flex-wrap:nowrap;}
.specialism-line .tag {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.card-recommendation {grid-column:1/-1;font-size:13px;line-height:1.5;margin:0;color:var(--forest);}
.card-recommendation strong {background:var(--subtle);border-radius:4px;padding:2px 5px;}
@media (min-width:1024px) {.card {padding:18px 20px;row-gap:10px;}.card-recommendation {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}
@media (max-width:1023px) {
 :root {--app-header-height:64px;--bottom-tabs-height:calc(60px + env(safe-area-inset-bottom));}
 body {padding-bottom:var(--bottom-tabs-height);}
 .top .top-in {height:64px;min-height:64px;gap:8px;}
 .top .nav {display:none;}
 .top .brand {min-width:0;margin-right:auto;}.brand img {width:32px;height:32px;}.brand span b {font-size:14px;}.brand span small {display:none;}
 .header-tools {gap:8px;}.header-tools .header-join {display:none;}.header-tools .theme-btn {min-width:36px;width:36px;height:38px;min-height:38px;}
 .account-menu > summary {font-size:13px;padding:10px 2px;}
 .bottom-tabs {position:fixed;inset:auto 0 0;z-index:60;height:var(--bottom-tabs-height);padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:#073C30;display:flex;justify-content:space-around;gap:4px;border-top:1px solid #53796B;}
 .bottom-tabs a {display:flex;align-items:center;justify-content:center;flex:1;min-height:48px;color:white;text-decoration:none;font-size:12px;line-height:16px;text-align:center;padding:4px;}
 .bottom-tabs a[aria-current=page] {color:#D8ED86;box-shadow:inset 0 3px #D8ED86;}
 .toast {bottom:calc(var(--bottom-tabs-height) + 12px);}
 .card .side {grid-column:1/-1;grid-row:auto;}.card .side .btn {flex:1;justify-content:center;min-height:44px;}
 .card .specialism-line {flex-wrap:wrap;}.card .specialism-line .tag {max-width:100%;}
}
/* The map owns the viewport; panels float over it instead of shrinking it. */
body.map-active {overflow:hidden;}
body.map-active .foot {display:none;}
.board.map-layout {position:fixed;inset:var(--app-header-height) 0 var(--bottom-tabs-height);max-width:none;width:auto;padding:0;margin:0;z-index:10;}
.map-layout .board-grid,.map-layout .results,.map-layout .results-body {display:contents;}
.map-layout .board-head {position:absolute;top:12px;left:16px;width:270px;background:var(--surface);padding:12px;border-radius:12px;box-shadow:var(--shadow);z-index:3;display:block;}
.map-layout .board-head h1 {font-size:20px;margin-bottom:8px;}
.map-layout .board-intro,.map-layout .starting-row,.map-layout .board-tools,.map-layout .board-head .quiet,.map-layout .mobile-shortcuts,.map-layout #boardMatchTools,.map-layout .match-sort-status {display:none;}
.map-layout .search {margin:0;}.map-layout .search input {width:100%;}
.map-layout .rail {position:absolute;top:142px;left:16px;bottom:16px;width:270px;max-height:none;background:var(--surface);padding:16px;overflow:auto;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);z-index:3;}
.map-layout #jobMap {position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0;}
.map-layout #jobMap .jobs-map {position:absolute;inset:0;width:100%;height:100%;min-height:0;}
.map-layout .results-bar {position:absolute;top:12px;right:16px;width:380px;margin:0;background:var(--surface);padding:12px;border-radius:12px;box-shadow:var(--shadow);z-index:4;display:flex;flex-wrap:wrap;gap:8px;}
.map-layout .results-list {position:absolute;top:var(--map-results-top,180px);bottom:16px;right:16px;width:380px;height:auto;min-height:0;max-height:none;overflow:auto;overflow-x:hidden;padding:8px;background:color-mix(in srgb,var(--surface) 94%,transparent);border-radius:12px;box-shadow:var(--shadow);z-index:3;}
.map-layout .results-list .card {display:block;margin-bottom:10px;}.map-layout .results-list .side {margin:10px 0;}.map-layout .results-list .meta,.map-layout .results-list .tags {margin-top:8px;}
.map-layout #jobMap > p,.map-layout .map-notes {position:absolute;left:306px;bottom:12px;max-width:350px;background:var(--surface);padding:6px 10px;border-radius:8px;z-index:2;margin:0;font-size:12px;}
.map-layout #jobMap > p {top:12px;bottom:auto;}
.map-layout .map-controls {position:absolute;top:64px;left:306px;z-index:2;display:flex;gap:4px;}
.map-layout .map-tooltip {position:absolute;left:306px;bottom:56px;background:var(--surface);z-index:2;padding:8px;border-radius:8px;max-width:320px;}
@media (max-width:1023px) {
 .map-layout .board-head {display:none;}.map-layout .rail:not(.sheet-open) {display:none;}
 .map-layout .rail.sheet-open {position:fixed;inset:var(--app-header-height) 0 var(--bottom-tabs-height);width:auto;border-radius:0;z-index:90;}
 .map-layout .results-bar {top:8px;left:8px;right:8px;width:auto;padding:8px;gap:6px;}.map-layout .results-bar .sort {display:none;}.map-layout .results-bar .count-line {font-size:15px;}.map-layout .results-bar .match-facet {display:none;}
 .map-layout .results-list {left:8px;right:8px;top:auto;bottom:8px;width:auto;height:30%;padding:6px;}
 .map-layout .map-controls {left:8px;top:76px;}.map-layout #jobMap > p {display:none;}.map-layout .map-tooltip {left:8px;bottom:calc(30% + 20px);max-width:260px;}.map-layout .map-notes {left:auto;right:8px;bottom:calc(30% + 20px);max-width:160px;}
}
@media (max-width:1023px) {.rail.sheet-open {position:fixed;inset:var(--app-header-height) 0 var(--bottom-tabs-height);height:auto;z-index:90;}}

.map-layout .results-list .cards {min-width:0;grid-template-columns:minmax(0,1fr);}
.map-layout .results-list .card {min-width:0;max-width:100%;overflow-wrap:anywhere;}
.map-layout .results-list .meta > span {max-width:100%;}
.map-layout .results-list .specialism-line .tag {min-width:0;}
.map-layout .map-controls {flex-wrap:wrap;max-width:310px;top:80px;}
.top :focus-visible,.bottom-tabs :focus-visible {outline-color:#D8ED86;}
@media(max-width:1023px){.card .specialism-line .tag {white-space:normal;}.map-layout .map-controls{top:76px;max-width:270px;}}
/* Cross-document transitions keep the header stationary and the canvas themed. */
@view-transition {navigation:auto;}
html {background:var(--canvas);}
.top {view-transition-name:ed-header;}
::view-transition {background:var(--canvas);}
::view-transition-old(root) {animation:ed-page-out 70ms ease-out both;}
::view-transition-new(root) {animation:ed-page-in 100ms ease-out both;}
::view-transition-group(ed-header),::view-transition-new(ed-header) {animation:none;}
::view-transition-old(ed-header) {display:none;}
@keyframes ed-page-out {to {opacity:0;}}
@keyframes ed-page-in {from {opacity:0;}to {opacity:1;}}
@media(prefers-reduced-motion:no-preference){html[data-navigation=pending] main {opacity:.96;}}
@media(prefers-reduced-motion:reduce){@view-transition {navigation:none;}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) {animation:none!important;}}
/* Reserve shared chrome and late account comparisons instead of moving the list. */
.header-tools {min-height:44px;}
.count-line,.n,.metric strong,[data-saved-count] {font-variant-numeric:tabular-nums;}
.n {min-width:4ch;text-align:right;}
body:is([data-page=applications],[data-page=analytics],[data-page=profile],[data-page=settings],[data-page=saved],[data-page=market]) main {min-height:calc(100svh - var(--app-header-height));}
#matchSortStatus {min-height:36px;}
#matchSortStatus[hidden] {display:block!important;visibility:hidden;}
[data-session=signed-in] .card::after {content:"";grid-column:1/-1;min-height:39px;}
[data-session=signed-in] .card:has(.card-recommendation)::after {display:none;}
[data-session=signed-in] .card-recommendation {min-height:39px;}
@media(min-width:1024px){[data-session=signed-in] .card::after,[data-session=signed-in] .card-recommendation {min-height:20px;}}

.chart-alternative {contain:strict;}
.chart-alternative table {table-layout:fixed;width:1px;}

.match-filter-placeholder {visibility:hidden;}
#matchFilterSlot:has(> #matchFacet[hidden]) {min-width:216px;min-height:36px;}
