/* Atlas rail (atlas.js). A calm panel on the right under the bar; on a wide screen the page makes room, below 1440 it
   floats over the page, on a phone it takes the screen. Orange is only the mark and the dot that says "a thought". */
.atlas{position:fixed;top:var(--bar-h);inset-inline-end:0;bottom:0;z-index:40;width:400px;max-width:100vw;display:flex;flex-direction:column;background:var(--surface);border-inline-start:1px solid var(--line);box-shadow:var(--overlay)}
@media (min-width:1440px){.atlas{box-shadow:none}body.atlas-open .stage{margin-inline-end:400px}}
.at-intro{margin:0;color:var(--t2)}
.at-tip p{margin:0 0 8px}.at-tip>div{min-width:0}.at-tip .btn{white-space:normal;height:auto;min-height:34px;text-align:start}
.at-dot{flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%;background:var(--accent)}
.at-dot.warn{background:var(--warn)}.at-dot.good{background:var(--good)}
.at-err{display:flex;gap:8px;color:var(--ink)}
.at-busy{color:var(--t3)}
.at-card{margin-top:8px;border:1px solid var(--line);border-radius:var(--r-2);background:var(--surface)}
.at-card>header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line-soft)}
.at-card .facts{margin:0;padding:4px 12px}.at-card .facts div{grid-template-columns:104px minmax(0,1fr)}
.at-card>p{margin:8px 12px}.at-acts{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px}
.at-act{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border-top:1px solid var(--line-soft)}.at-act:first-child{border-top:0}.at-act .btn{align-self:flex-start}
.at-out p{margin:4px 0;display:flex;gap:6px;align-items:flex-start}
.at-hints{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ask-btn[aria-expanded=true]{background:var(--well)}
/* Look (23 Oct): a black-to-graphite band with the orange mark, a faint grey wash behind the talk, an ink bubble for the question,
   a raised card for the answer. Brand ink and graphite only (no navy: that is Verso); orange stays the mark and the dot. */
.atlas{--at-g1:var(--m-hdr1,#0E1112);--at-g2:var(--m-hdr2,#2B3033);--at-wash:color-mix(in srgb,var(--ink) 4%,var(--surface))}
.at-head{position:relative;display:flex;align-items:center;gap:8px;height:56px;padding:0 8px 0 16px;color:#FAFAFA;background:linear-gradient(120deg,var(--at-g1) 0%,var(--at-g2) 100%);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 2px 8px rgba(14,17,18,.18)}
.at-head b{font:500 16px/24px var(--body)}.at-head .sp{flex:1}
.at-head .atlas-mark{width:24px;height:24px}.at-head .atlas-mark svg{width:22px;height:22px}
.at-head .am-g,.at-head .am-p{stroke:#F2845C}
.at-head .btn{border-color:transparent;background:none;color:#FAFAFA}.at-head .btn:hover{background:rgba(255,255,255,.12)}.at-head .btn:focus-visible{outline-color:#FAFAFA}
.at-head .btn[aria-expanded=true]{background:rgba(255,255,255,.18)}
.at-head svg{stroke:currentColor}
.at-body{flex:1;min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px;font-size:14px;line-height:22px;background:linear-gradient(180deg,var(--at-wash) 0,var(--surface) 280px)}
.at-q{align-self:flex-end;max-width:85%;padding:8px 12px;border-radius:var(--r-2) var(--r-2) 2px var(--r-2);background:var(--ink);color:var(--on-ink);overflow-wrap:anywhere}
.at-a{min-width:0;overflow-wrap:anywhere}
.at-a:not(.at-err):not(.at-busy){padding:12px;border:1px solid var(--line);border-radius:2px var(--r-2) var(--r-2) var(--r-2);background:var(--surface);box-shadow:0 1px 2px rgba(14,17,18,.06),0 4px 12px rgba(14,17,18,.05)}
.at-tip{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:var(--r-2);background:var(--surface);box-shadow:0 1px 2px rgba(14,17,18,.06),0 4px 12px rgba(14,17,18,.05)}
.at-hint{text-align:start;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-2);background:var(--surface);color:var(--ink);font:400 13px/18px var(--body);cursor:pointer;box-shadow:0 1px 2px rgba(14,17,18,.05)}
.at-hint:hover,.at-hint:focus-visible{border-color:var(--ink);background:var(--at-wash);outline:none}
/* The ask row: one field, the send button inside it, so the words get the whole width. */
.at-form{padding:12px 16px 16px;border-top:1px solid var(--line);background:linear-gradient(180deg,var(--surface) 0,var(--at-wash) 100%);box-shadow:0 -4px 12px rgba(14,17,18,.05)}
.at-field{display:flex;gap:8px;align-items:flex-end;padding:3px;border:1px solid var(--ctl-line);border-radius:var(--r-2);background:var(--surface);box-shadow:0 1px 2px rgba(14,17,18,.06)}
.at-field:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.at-in{flex:1;min-width:0;display:block}
.at-in textarea{display:block;width:100%;height:38px;min-height:38px;max-height:160px;padding:8px 8px 8px 10px;overflow:auto;border:0;border-radius:var(--r-1);background:none;color:var(--ink);font:400 14px/22px var(--body);resize:none}
.at-in textarea:focus{outline:none}
.at-in textarea::placeholder{color:var(--t3);opacity:1}
.at-send{flex:none;width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--r-1);background:var(--ink);color:var(--on-ink);cursor:pointer}
.at-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.at-send:hover{background:var(--t2)}.at-send:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.at-send:disabled{opacity:.4;cursor:default}
/* Settings: a small gear in the header opens this; Alerts and the monthly use live here, not in the way of the controls. */
.at-menu{position:absolute;z-index:3;top:52px;inset-inline-end:8px;width:280px;padding:8px 0;border:1px solid var(--line-strong);border-radius:var(--r-2);background:var(--surface);color:var(--ink);box-shadow:var(--overlay)}
.at-menu[hidden]{display:none}
.at-menu h3{margin:0;padding:4px 16px;font:var(--lbl);color:var(--t3)}
.at-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 16px;border:0;background:none;color:var(--ink);font:400 14px/20px var(--body);text-align:start;cursor:pointer}
.at-menu button:hover,.at-menu button:focus-visible{background:var(--well);outline:none}
.at-menu button::before{content:"";flex:none;width:12px;height:12px;border:1.5px solid var(--line-strong);border-radius:50%}
.at-menu button[aria-checked=true]{font-weight:500}.at-menu button[aria-checked=true]::before{border-color:var(--ink);background:radial-gradient(circle,var(--ink) 0 3px,transparent 3.5px)}
.at-menu p{margin:0;padding:8px 16px 4px;border-top:1px solid var(--line-soft);margin-top:8px;color:var(--t3);font-size:13px;line-height:18px}
@media (max-width:760px){.atlas{top:0;width:100vw;z-index:70;border-inline-start:0}}
/* The note under the bar ("Pulse and note"): one line, top right, opens the rail. */
.at-note{position:fixed;top:calc(var(--bar-h) + 8px);inset-inline-end:16px;z-index:35;display:flex;gap:8px;align-items:flex-start;max-width:min(420px,calc(100vw - 32px));padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-2);background:var(--surface);box-shadow:0 2px 8px rgba(14,17,18,.08);color:var(--ink);font:400 13px/18px var(--body);text-align:start;cursor:pointer}
.at-note .at-dot{margin-top:6px}.at-note span:last-child{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:760px){.at-note{inset-inline-end:12px;inset-inline-start:12px;max-width:none}}
@media (max-width:760px),(pointer:coarse){.at-send{width:44px;height:44px}.at-in textarea{height:44px;min-height:44px;padding:10px 8px 10px 10px}.at-menu button{min-height:44px}.at-menu{top:56px}}
