/* Atlas layout and components. Behaviour remains in the existing page modules. */
body {font-size:var(--text-body);line-height:1.55;-webkit-font-smoothing:antialiased;}
a {text-underline-offset:4px;}
h1,h2,h3 {letter-spacing:-.025em;text-wrap:pretty;}
h1 {font-size:var(--text-page);line-height:1.15;font-weight:650;}
h2 {font-size:var(--text-section);line-height:1.25;}
h3 {line-height:1.35;}
.wrap {max-width:var(--content-width);padding-inline:var(--gutter);}
.narrow {max-width:880px;}
.small,.hint {font-size:var(--text-meta);}
:focus-visible {outline:3px solid var(--focus);outline-offset:4px;}
.top :focus-visible,.bottom-tabs :focus-visible {outline-color:var(--focus);}
::selection {background:var(--forest);color:var(--on-brand);}
input,select,textarea {background:var(--surface);color:var(--ink);accent-color:var(--forest);}
input::placeholder,textarea::placeholder {color:var(--muted);opacity:1;}
.btn {border-radius:var(--r-ctl);font-weight:650;justify-content:center;color:var(--forest);border-color:var(--border-strong);}
.btn:hover {background:var(--subtle);}
.btn.primary,:root[data-theme=dark] .btn.primary {color:var(--on-brand);background:var(--forest);border-color:var(--forest);}
.btn.primary:hover {filter:brightness(.94);}
.btn[aria-pressed=true]:not(.primary),.starting-paths .btn[aria-pressed=true] {background:var(--subtle);color:var(--forest);border-color:var(--forest);}
.btn.danger {color:var(--error);background:var(--error-bg);border-color:var(--error);}
input:not([type=checkbox]):not([type=radio]),select,textarea {border-color:var(--border-strong);border-radius:var(--r-ctl);}
button:disabled {opacity:.6;}
.panel-card,.metric,.stage,.starter,.mini a,.profile-record,.kanban-column,.tracker-card,.saved-search,.empty-state {border-radius:var(--r-card);}
.panel-card {padding:var(--space-6);}
.section-heading {gap:var(--space-4);margin-bottom:var(--space-6);}
.grid-2,.grid-3 {gap:var(--space-5);}
.stack {gap:var(--space-5);}
.eyebrow {font-size:12px;line-height:1.4;letter-spacing:.1em;}
.lede {line-height:1.55;}
.tag,.badge,.pill {border-radius:4px;line-height:1.45;}
.tag {padding:4px 9px;background:var(--subtle);}
.tag.fn,:root[data-theme=dark] .tag.fn {background:var(--subtle);color:var(--ink);}
.tag.net,.new-search-count {color:#19352F;}
.chip {color:var(--forest);}
.saved-search-chip,:root[data-theme=dark] .saved-search-chip {background:var(--saved-search-bg);color:var(--saved-search-ink);border-color:var(--saved-search-border);}
/* Existing Energy Dispatch mark and name, within Atlas's single light header. */
.top {background:var(--header-surface);color:var(--ink);border-bottom:1px solid var(--border);}
.top .top-in {height:var(--header-content-height);min-height:var(--header-content-height);gap:24px;padding-block:0;}
.top .brand {color:var(--ink);gap:10px;flex:none;}
.brand img {background:var(--logo-surface);padding:5px;border-radius:8px;}
.brand b {font-size:17px;letter-spacing:-.025em;}
.brand small {color:var(--muted);font-size:10px;letter-spacing:.08em;}
.top .nav {gap:20px;margin-left:auto;flex:0 1 auto;height:100%;}
.top .nav a {color:var(--muted);font-weight:650;display:flex;align-items:center;padding:0 3px;}
.top .nav a[aria-current] {color:var(--forest);border-color:var(--forest);}
.top .nav a:hover {color:var(--forest);}
.header-tools {margin-left:16px;}
.header-tools .theme-btn {color:var(--forest);background:var(--subtle);border:0;}
.header-login,.account-pill,.account-menu,.account-menu > summary {color:var(--forest);}
.header-join {background:var(--forest);color:var(--on-brand);border-color:var(--forest);}
.avatar {background:var(--subtle);color:var(--forest);border-color:var(--border-strong);}
.account-menu nav {background:var(--surface);border-color:var(--border-strong);border-radius:var(--r-card);}
.account-menu nav a {color:var(--ink);}
.account-menu nav a:hover,.account-menu nav a:focus-visible {background:var(--subtle);}
.bottom-tabs {background:var(--header-surface);border-color:var(--border-strong);}
.bottom-tabs a {color:var(--muted);}
.bottom-tabs a[aria-current=page] {color:var(--forest);box-shadow:inset 0 3px var(--forest);}
/* Landing and the complete tour keep their existing content and links. */
.hero {padding:64px 0 48px;}
.hero-in:before {content:"";display:block;width:48px;height:5px;background:var(--forest);margin-bottom:24px;}
.hero h1 {font-size:var(--text-hero);line-height:1.05;max-width:15ch;letter-spacing:-.045em;}
.hero .lede {font-size:20px;max-width:52ch;margin-block:24px;}
.hero-mark {right:24px;top:28px;width:260px;height:260px;object-fit:contain;opacity:.85;}
.bigsearch {gap:8px;max-width:820px;}
.bigsearch input,.search input {min-height:48px;border-radius:var(--r-ctl);padding:10px 14px;min-width:0;}
.bigsearch .btn {min-height:48px;padding-inline:24px;}
.hero-actions {gap:12px;}
.block {padding:32px var(--gutter);}
.stage,.starter {padding:24px;gap:10px;}
.stage b,.starter b {font-size:18px;}
.product-intro {padding:32px 0;background:var(--subtle);}
.product-intro .grid-3>div {border-left:3px solid var(--forest);}
.mini a {padding:18px;border-left:3px solid var(--forest);}
.mini b {font-size:16px;color:var(--forest);}
.tour-page {max-width:var(--content-width);padding-block:32px 64px;}
.tour-grid {gap:64px;}
.tour-grid h1 {font-size:44px;line-height:1.15;}
.tour-filter-example span,.tour-stages {border-radius:var(--r-card);}
/* Find jobs and Saved share the same compact cards and filter workspace. */
.board {padding-top:28px;padding-bottom:48px;}
.board-head h1 {font-size:32px;line-height:1.15;margin-bottom:12px;}
.board-intro {font-size:14px;margin-bottom:16px;}
.board-grid {grid-template-columns:260px minmax(0,1fr);gap:28px;margin-top:24px;}
.rail {background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:18px;top:calc(var(--app-header-height) + 20px);max-height:calc(100dvh - var(--app-header-height) - 40px);}
.rail-head {margin-bottom:16px;gap:8px;}
.facet {padding-block:14px;}
.facet-find {background:var(--surface);min-height:40px;}
.starting-paths .btn,.mobile-shortcuts .btn,.saved-search-chip {border-radius:24px;font-size:13px;}
.starting-row {gap:12px;}
.search {gap:8px;max-width:none;}
.count-line {font-size:20px;font-weight:650;}
.cards {gap:10px;}
.card {padding:16px;grid-template-columns:minmax(0,1fr) 124px;gap:8px 20px;border-left:3px solid var(--forest);border-radius:var(--r-card);}
.card>div:first-child {grid-column:1;min-width:0;}
.card h3 {font-size:var(--text-card);line-height:1.35;letter-spacing:-.018em;}
.card h3 a,.card h3 a:visited {color:var(--forest);}
.card .who {font-size:15px;margin-top:5px;}
.card .card-location {font-size:14px;margin-top:3px;}
.card .meta {grid-column:1;gap:4px 14px;margin-top:0;line-height:1.6;}
.card .meta .soon,.mini small.soon {color:var(--forest);}
.card .tags,.card .specialism-line,.card .card-notes,.card-recommendation,.match-evidence {grid-column:1;}
.card .tags {margin-top:0;}
.card .tag {font-size:12px;}
.card .side {grid-column:2;grid-row:1/span 3;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0;border-left:1px solid var(--border);padding-left:14px;}
.card .side .btn {justify-content:flex-start;min-height:36px;font-size:13px;padding:6px 8px;background:transparent;border-color:transparent;}
.card .side .btn:hover {background:var(--subtle);}
.card .side .btn[aria-pressed=true] {border-color:var(--forest);background:var(--subtle);}
.pagination [aria-current=page] {background:var(--forest);color:var(--on-brand);}
.sheet-foot,.panel-top {border-color:var(--border);}
.drawer .panel {border-radius:var(--r-panel) 0 0 var(--r-panel);}
/* A readable role and a separate application-check panel, without new facts. */
.job-page {max-width:var(--content-width);}
.job {display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:0 48px;align-items:start;}
.job-head {grid-column:1;grid-row:1;}
.job h1 {font-size:44px;line-height:1.15;letter-spacing:-.035em;}
.job .who {font-size:17px;line-height:1.5;margin-top:22px;}
.job-application {grid-column:2;grid-row:1/span 2;position:sticky;top:calc(var(--app-header-height) + 24px);padding:24px;border:1px solid var(--border);background:var(--surface);border-radius:var(--r-card);min-width:0;}
.job-application .before-apply {margin:0;padding:0;background:transparent;border:0;}
.before-apply h2 {font-size:22px;line-height:1.3;margin-bottom:16px;}
.before-apply-eligibility>div {grid-template-columns:minmax(0,1fr);gap:4px;padding-block:10px;border-top:1px solid var(--border);}
.before-apply-eligibility dt {font-size:12px;color:var(--muted);font-weight:500;}
.before-apply-eligibility dd {font-size:14px;}
.job-application .actions {gap:8px;}
.job-application .actions>.primary {width:100%;}
.job-application .actions>.btn:not(.primary) {flex:1;}
.apply-provenance {font-size:12px;line-height:1.65;}
.job-content {grid-column:1;grid-row:2;min-width:0;}
.job-content .glance {padding:20px;background:var(--surface);border:1px solid var(--border);gap:20px;margin-top:28px;}
.job-content .sec {border-top:1px solid var(--border);padding-top:28px;margin-top:28px;}
.job-content .sec h2 {font-size:24px;}
.job-content .sec p,.job-content .sec li {line-height:1.75;}
/* Profiles, settings, tracker and insights use the same surface language. */
.workspace {padding-block:38px 64px;}
.workspace-heading h1 {font-size:var(--text-page);}
.profile-layout {grid-template-columns:230px minmax(0,1fr);gap:48px;}
.profile-side nav a {border-radius:var(--r-ctl);}
.profile-avatar {background:var(--subtle);color:var(--forest);}
.profile-view-grid {gap:20px;}
.profile-read-records>div {border-radius:var(--r-ctl);padding:20px;}
.profile-save-top {border:1px solid var(--border);border-radius:var(--r-card);padding:12px 16px;}
.profile-section,.v3-form fieldset {border-radius:var(--r-card);}
.cv-drop {border-color:var(--border-strong);border-radius:var(--r-card);background:var(--subtle);}
#profileFlow h1 {font-size:32px;line-height:1.2;margin-bottom:12px;}
.kanban-column {background:var(--subtle);padding:14px 12px;}
.tracker-card {border-left:3px solid var(--forest);padding:16px;}
.tracker-title {color:var(--forest);font-size:15px;}
.stage-dot.applied,:root[data-theme=dark] .stage-dot.applied {background:var(--forest);}
.metric {padding:22px;border-radius:var(--r-card);}
.insight-bar-track {background:var(--subtle);}
.v3-dialog,.dialog {border-radius:var(--r-panel);background:var(--surface);}
.toast {background:var(--deep);color:#FFFFFF;}
:root[data-theme=dark] .toast {background:var(--subtle);color:var(--ink);border:1px solid var(--border-strong);}
/* Preserve the full-screen map and every existing control. */
.map-layout .board-head,.map-layout .rail,.map-layout .results-bar,.map-layout .results-list {border-radius:var(--r-card);}
.map-layout .results-list .card {display:block;padding:16px;}
.map-layout .results-list .card .side {flex-direction:row;border:0;padding:0;justify-content:flex-start;gap:4px;}
.map-layout .results-list .card .side .btn {min-height:36px;}
.map-layout .results-list .card .tags {margin-top:10px;}
@media (max-width:1100px) and (min-width:1024px) {.top .nav {gap:8px;}.header-tools {margin-left:0;}.top .top-in {gap:12px;}.job {gap:0 28px;grid-template-columns:minmax(0,1fr) 320px;}}
@media (max-width:1023px) {
  .top .top-in {gap:12px;}.top .brand {margin-right:auto;}.brand b {font-size:15px;}.brand img {width:34px;height:34px;padding:4px;}
  .header-tools {margin-left:0;gap:8px;}.header-tools .theme-btn {min-width:38px;width:38px;min-height:38px;}
  .board {padding-top:22px;}.board-grid {display:block;margin-top:20px;}.board-head h1 {font-size:30px;}
  .rail {border-radius:0;max-height:none;padding:20px;}.rail.sheet-open {padding-bottom:96px;}
  .sheet-foot {bottom:var(--bottom-tabs-height);padding:12px 20px;}
  .card {padding:14px;grid-template-columns:minmax(0,1fr);gap:8px;}
  .card .side {grid-column:1;grid-row:auto;flex-direction:row;border-left:0;border-top:1px solid var(--border);padding:6px 0 0;justify-content:flex-start;}
  .card .side .btn {flex:1;min-height:40px;justify-content:center;}
  .card .meta,.card .tags,.card .specialism-line,.card-recommendation,.match-evidence {grid-column:1;}
  .card .side {order:9;}.card .meta {order:2;}.card .tags {order:3;}.card .card-notes {order:4;}.match-evidence {order:5;}.card-recommendation {order:6;}
  .card .specialism-line .tag {white-space:normal;}
  .hero {padding:36px 0;}.hero h1 {font-size:var(--text-hero);max-width:17ch;}.hero .lede {font-size:18px;}
  .hero-mark {display:none;}.hero-in:before {margin-bottom:20px;}
  .profile-layout {grid-template-columns:190px minmax(0,1fr);gap:28px;}
  .job {display:flex;flex-direction:column;gap:24px;}.job-head,.job-content,.job-application {width:100%;}
  .job h1 {font-size:34px;line-height:1.15;}.job-application {position:static;padding:22px;}
  .job-content .glance {margin-top:0;}
  .drawer .panel {border-radius:0;}
}
@media (max-width:767px) {
  .workspace {padding-block:26px 40px;}.workspace-heading h1 {font-size:30px;}
  .hero .lede {font-size:17px;}.hero h1 {font-size:38px;line-height:1.08;}.bigsearch {gap:8px;}
  .block {padding-block:26px;}.stage,.starter,.panel-card {padding:22px;}
  .tour-page {padding-inline:16px;}.tour-grid {gap:32px;}.tour-grid h1 {font-size:32px;line-height:1.2;}
  .profile-layout {display:block;}.profile-view-grid {grid-template-columns:minmax(0,1fr);}
  .profile-side {margin-bottom:24px;}.profile-save-top {padding:10px;}
  .count-line {font-size:18px;}.card .who {font-size:14px;}.card .card-location {font-size:13px;}
  .card .meta {font-size:12px;}.card .tag {font-size:11px;}.card h3 {font-size:18px;line-height:1.35;}
  .results-bar {gap:10px;}.starting-paths .btn,.mobile-shortcuts .btn {font-size:12px;}
  .map-layout .results-list .card .side {border-top:1px solid var(--border);padding-top:6px;}
}

/* Drawer articles use the same components in their narrower reading column. */
.drawer .job {display:flex;flex-direction:column;gap:24px;}
.drawer .job-head,.drawer .job-application,.drawer .job-content {width:100%;}
.drawer .job-application {position:static;}
.drawer .job h1 {font-size:32px;line-height:1.2;}
body[data-page=saved] main.narrow {max-width:var(--content-width);}
/* Atlas's landing places the existing snapshot figures alongside the welcome. */
.hero-in {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr);column-gap:72px;align-items:start;}
.hero-in:before,.hero-in>.eyebrow,.hero-in>h1,.hero-in>.bigsearch,.hero-in>.hero-actions,.hero-in>.quiet {grid-column:1;}
.hero .board-snapshot {grid-column:2;grid-row:1/span 6;margin:0;max-width:none;align-self:stretch;border:1px solid var(--border);border-top:5px solid var(--forest);border-radius:var(--r-card);background:var(--subtle);padding:32px;color:var(--muted);font-size:20px;line-height:1.65;}
.board-total {display:block;color:var(--ink);font-size:88px;line-height:1.1;letter-spacing:-.06em;font-weight:750;margin:0 0 24px;}
.hero .bigsearch {margin-top:28px;min-width:0;}
.hero-actions {margin-top:20px;}
@media(max-width:1023px){.hero-in {display:block;}.hero .board-snapshot {margin-top:28px;padding:24px;max-width:52ch;font-size:17px;}.board-total {font-size:64px;margin-bottom:12px;}.hero .bigsearch {margin-top:24px;}}
@media(max-width:1023px){.hero-in {display:flex;flex-direction:column;align-items:stretch;}.hero-in:before {align-self:flex-start;flex-shrink:0;}.hero .board-snapshot {order:9;}.hero-in>.quiet {order:10;}}
/* List markers stay within the profile reading column. */
.profile-read-group ul,#profileReadView .panel-card ul {padding-left:20px;}
body[data-page=profile] .profile-content :where(a,button,input,select,textarea,summary,[tabindex]) {scroll-margin-top:calc(var(--app-header-height) + 100px);}
/* Narrow map cards keep the same fact/action order as phone list cards. */
.map-layout .results-list .card {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
.map-layout .results-list .card .side {grid-column:1;grid-row:auto;order:9;}
.map-layout .results-list .card .meta {order:2;}.map-layout .results-list .card .tags {order:3;}.map-layout .results-list .card .card-notes {order:4;}
@media(max-width:1023px){.job-application .before-apply-eligibility>div {grid-template-columns:100px minmax(0,1fr);gap:10px;padding-block:8px;}}
/* Keep the original snapshot sentence intact while giving it a metric hierarchy. */
.board-total {font-size:44px;line-height:1.15;letter-spacing:-.035em;max-width:14ch;}
@media(max-width:1023px){.board-total {font-size:32px;max-width:19ch;}}
/* Keep restored pixels stable while account/filter controls finish enhancing. */
.board {overflow-anchor:none;}

summary {scroll-margin-block:calc(var(--app-header-height) + 20px);}
/* Hidden/expired rows retain readable text rather than fading the whole card. */
.card.expired {opacity:1;background:var(--subtle);border-style:dashed;}

/* External-link arrows do not depend on a system symbol font. */
.external-arrow {font-size:0;display:inline-block;width:14px;height:14px;position:relative;vertical-align:-2px;flex-shrink:0;}
.external-arrow::before {content:"";position:absolute;width:12px;height:2px;left:1px;top:7px;background:currentColor;transform:rotate(-45deg);}
.external-arrow::after {content:"";position:absolute;width:8px;height:8px;right:1px;top:1px;border-top:2px solid currentColor;border-right:2px solid currentColor;}
/* Modal role details must cover the fixed navigation, including their focus ring. */
.drawer {z-index:100;}
/* Access grants use the existing card and form system; they do not gate features. */
.entitlement-list {list-style:none;padding:0;display:grid;gap:12px;margin:12px 0 20px;}
.entitlement-list li {border-left:3px solid var(--forest);background:var(--subtle);border-radius:var(--r-ctl);padding:12px 16px;}
.entitlement-list p {margin:5px 0 0;}
#accessEntitlements h3 {font-size:16px;margin-top:20px;}
#accessCodesPanel .form-error:empty {display:none;}

/* The same build-time people link sits immediately after each employer name. */
.linkedin-people{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:28px;height:28px;margin-inline-start:6px;border:1px solid transparent;border-radius:var(--r-ctl);color:var(--forest);text-decoration:none;flex-shrink:0}
.linkedin-people svg{display:block;width:16px;height:16px;fill:currentColor}
.linkedin-people:hover{background:var(--subtle);border-color:var(--border-strong)}
.linkedin-people:focus-visible{outline:3px solid var(--focus);outline-offset:3px;background:var(--subtle)}
@media(max-width:639px){.linkedin-people{width:44px;height:44px}}

/* Keep the colour-mode control readable at every breakpoint. */
.header-tools button.theme-btn {width:auto;min-width:64px;padding-inline:10px;}
