/* Agent Atlas follows the portfolio's editorial grid, with instrument labels on figures and controls. */
.atlas-page { --atlas-ink: var(--ink); --atlas-rule: #d7d9d2; --atlas-paper: #f5f5ef; --atlas-accent: var(--rust); color: var(--atlas-ink); }
.atlas-shell { width: min(calc(100% - 2 * var(--metro-gutter)), var(--metro-width)); margin: 0 auto 5rem; }
.atlas-shell :is(h1,h2,h3,p,figure,fieldset,blockquote) { margin: 0; }
.atlas-shell :is(h1,h2,h3) { color: var(--atlas-ink); text-wrap: balance; }
.atlas-shell a { color: inherit; }
.atlas-shell img { display: block; max-width: 100%; }
.atlas-shell a:focus-visible, .atlas-shell :is(summary,button,input,select):focus-visible { outline: 3px solid #a83d16; outline-offset: 3px; }
.atlas-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding: .85rem 0; }
.atlas-nav div { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; }
.atlas-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; font-weight: 600; }
.atlas-nav .atlas-sign { font-size: 1rem; gap: .55rem; letter-spacing: -.02em; }
.atlas-sign i { position: relative; background: var(--atlas-ink); border-radius: .25rem; height: 1.1rem; width: 1.45rem; }
.atlas-sign i::before,.atlas-sign i::after { content: ""; position: absolute; top: .47rem; width: .25rem; height: .15rem; background: #ffce75; }
.atlas-sign i::before { left: .34rem; }.atlas-sign i::after { right: .34rem; }
.atlas-hero { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--atlas-paper); overflow: hidden; }
.atlas-intro { padding: clamp(1.6rem,4.6vw,4.5rem); align-self: center; }
.atlas-kicker,.atlas-meta,.atlas-heading > span { color: var(--ink-muted); font: 500 var(--type-label)/1.5 var(--mono); }
.atlas-kicker { text-transform: uppercase; letter-spacing: .085em; }
.atlas-intro h1 { margin: 0 0 1.25rem; }
.atlas-intro h1 span { color: var(--atlas-accent); }
.atlas-deck,.atlas-section-intro { max-width: 60ch; font-size: var(--type-lead); line-height: 1.55; color: var(--ink-muted); }
.atlas-cover { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.atlas-shell .atlas-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem; border: 1px solid var(--atlas-ink); background: var(--atlas-ink); color: white; padding: .72rem 1.1rem; border-radius: .15rem; font: 600 1rem/1.35 var(--sans); cursor: pointer; text-decoration: none; }
.atlas-shell .atlas-button:hover { background: #42483e; }
.atlas-intro .atlas-button { margin-top: 1.5rem; }
.atlas-section { margin-top: clamp(3.4rem,6vw,6.2rem); scroll-margin-top: 1rem; }
.atlas-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: 1.15rem; border-bottom: 2px solid var(--atlas-ink); margin-bottom: 1.4rem; }
.atlas-heading > span { flex-shrink: 0; }
.atlas-workers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.atlas-shifts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.atlas-shifts a { display:block; }
.atlas-shifts img { width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; background:var(--atlas-paper); }
.atlas-shifts h3 { font-size:clamp(1.3rem,2vw,1.8rem); margin:.8rem 0 .3rem; }
.atlas-shifts a:hover h3 { text-decoration:underline; }
.atlas-shifts p { max-width:38ch; line-height:1.55; }
@media(max-width:45rem){ .atlas-shifts { grid-template-columns:1fr; gap:1.75rem; } }
.atlas-card { display: grid; grid-template-columns: 41% minmax(0,1fr); background: var(--atlas-paper); align-items: center; color: inherit; }
.atlas-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.atlas-card div { padding: .85rem clamp(.8rem,1.6vw,1.4rem); }
.atlas-card h3 { font-size: clamp(1.2rem,1.65vw,1.7rem); font-weight: 610; line-height: 1.1; }
.atlas-card p { color: var(--ink-muted); font-size: .94rem; line-height: 1.4; margin: .4rem 0; }
.atlas-card div > span,.atlas-arrow { color: var(--atlas-accent); }
.atlas-card:hover,.atlas-note-link:hover,.atlas-related:hover,.atlas-bcu-link:hover { text-decoration: none; background-color: #eceee5; }
.atlas-notes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.6rem; margin-top: 1.3rem; }
.atlas-note-link { border-top: 1px solid var(--atlas-rule); padding: 1.25rem .25rem; display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.atlas-note-link h3 { font-size: clamp(1.27rem,2.2vw,1.9rem); margin: .35rem 0 .45rem; font-weight: 570; }
.atlas-note-link p { font-size: 1.01rem; color: var(--ink-muted); line-height: 1.5; }
.atlas-arrow { font-size: 1.45rem; }
.atlas-bcu { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.3rem,3.6vw,4rem); }
.atlas-bcu .atlas-section-intro { margin-bottom: 1.1rem; }
.atlas-bcu-link { align-self: start; background: var(--atlas-paper); }
.atlas-bcu-link img { width: 100%; height: auto; }
.atlas-bcu-link strong { display: flex; justify-content: space-between; padding: .9rem 1rem; }
.atlas-workbench { display: grid; grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr); gap: clamp(2rem,5vw,6rem); align-items: start; border-top: 1px solid var(--atlas-rule); padding-top: 2.3rem; }
.atlas-portrait { background: var(--atlas-paper); padding-bottom: 1.4rem; }
.atlas-portrait img { width: 100%; height: auto; }
.atlas-portrait p { margin: 1.3rem 1.3rem .35rem; }
.atlas-portrait a { display: block; margin: .5rem 1.3rem 0; text-decoration: underline; text-underline-offset: .2em; }
.atlas-console h1 { margin: .55rem 0 1rem; }
.atlas-console h2,.atlas-prose h2 { margin: 2rem 0 .9rem; }
.atlas-terminal,.atlas-result pre,.atlas-prose pre { margin: 1rem 0; padding: 1.2rem; max-width: 100%; overflow-x: auto; color: #eff3e8; background: #212728; border-radius: .15rem; font: 400 .92rem/1.65 var(--mono); tab-size: 4; }
.atlas-form { border-block: 1px solid var(--atlas-rule); padding: 1.25rem 0; }
.atlas-form > div { margin: 0 0 1rem; }
.atlas-form fieldset { min-width: 0; padding: 0; border: 0; }
.atlas-form legend,.atlas-form > div > label { display: block; font-weight: 650; padding: 0 0 .6rem; }
.atlas-form label:has(input[type=radio]),.atlas-form label:has(input[type=checkbox]) { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; cursor: pointer; }
.atlas-form input { accent-color: var(--atlas-accent); }
.atlas-form :is(input[type=number],select) { min-height: 2.75rem; padding: .4rem .7rem; max-width: 100%; border: 1px solid #7f867a; border-radius: .15rem; background: white; font: inherit; }
.atlas-form .errorlist { color: #903016; padding-inline-start: 1.3rem; }
.atlas-result { background: #eff3e8; padding: clamp(1rem,2vw,1.6rem); margin-top: 1.2rem; }
.atlas-result h2:first-of-type { margin-top: .3rem; }
.atlas-result pre { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.atlas-back { display: inline-block; margin: 1.6rem 0; }
.atlas-task { border-top: 1px solid #bdc3b5; padding: .65rem 0; }
.atlas-shell .atlas-quote { border-left: 3px solid #abb2a2; padding: .4rem 1rem; margin: 1.6rem 0; }
.atlas-article { width: min(100%,47rem); margin: clamp(2rem,5vw,5rem) auto 0; }
.atlas-article header h1 { margin: .75rem 0 1.2rem; }
.atlas-article header,.atlas-lead-figure { margin-bottom: 2rem; }
.atlas-article figure img { width: 100%; height: auto; }
.atlas-prose { font: var(--type-reading); }
.atlas-prose p,.atlas-prose blockquote { margin: 1.15rem 0; }
.atlas-prose blockquote { padding: .9rem 1.2rem; background: var(--atlas-paper); }
.atlas-prose blockquote p { margin: 0; }
.atlas-prose a,.atlas-endnav a { color: var(--atlas-accent); text-decoration: underline; text-underline-offset: .15em; }
.atlas-prose :not(pre) > code,.atlas-task code { font: 500 .91em var(--mono); }
.atlas-plates { border-block: 1px solid var(--atlas-rule); padding: 1rem 0; margin: 2rem 0; }
.atlas-plates summary { font-weight: 600; cursor: pointer; }
.atlas-plates > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding-top: 1rem; }
.atlas-plates figcaption { margin: .25rem 0; font-size: .9rem; }
.atlas-related { display: flex; gap: 1.1rem; background: var(--atlas-paper); align-items: center; margin-top: 2rem; padding-right: 1rem; }
.atlas-related img { width: 5.5rem; height: 5.5rem; object-fit: cover; }
.atlas-related strong { display: block; font-size: 1.2rem; line-height: 1.3; }
.atlas-endnav { display: flex; justify-content: space-between; gap: 1.2rem; padding: 1.5rem 0; font-size: .96rem; }
.atlas-endnav a:last-child { max-width: 62%; }
@media (max-width: 1050px) {
    .atlas-workers { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .atlas-hero { grid-template-columns: 1fr 1.1fr; }
}
@media (max-width: 760px) {
    .atlas-shell { margin-bottom: 3.5rem; }
    .atlas-hero,.atlas-bcu,.atlas-workbench,.atlas-notes { grid-template-columns: minmax(0,1fr); }
    .atlas-intro { padding: 1.6rem; }
    .atlas-intro h1 br { display: none; }
    .atlas-cover { height: auto; aspect-ratio: 1.7; }
    .atlas-heading { flex-wrap: wrap; }
    .atlas-portrait { display: grid; grid-template-columns: minmax(6rem,29%) 1fr; column-gap: .9rem; align-content: center; align-items: start; padding: 0 .6rem 0 0; }
    .atlas-portrait img { grid-row: 1 / span 4; align-self: stretch; object-fit: cover; min-height: 6rem; }
    .atlas-portrait p { margin: .55rem 0 0; }
    .atlas-portrait a { font-size: .94rem; line-height: 1.35; margin: .25rem 0 .5rem; }
    .atlas-workbench { gap: 1.7rem; padding-top: 1rem; }
    .atlas-article { margin-top: 1.5rem; }
}
@media (max-width: 540px) {
    .atlas-nav { flex-wrap: wrap; gap: 0 .8rem; }
    .atlas-nav div { gap: .15rem .9rem; }
    .atlas-nav a { font-size: var(--type-label); }
    .atlas-workers,.atlas-plates > div { grid-template-columns: 1fr; }
    .atlas-card { grid-template-columns: minmax(5.5rem,29%) 1fr; }
    .atlas-card div { padding: .7rem 1rem; }
    .atlas-endnav { flex-wrap: wrap; }
    .atlas-endnav a:last-child { max-width: 100%; }
}
