/* Building Almanac redesign (30 October 2026): compact hero, atlas map workspace, compact invitation. */

/* ---------- hero ---------- */
main#main .atl-hero { background: linear-gradient(180deg, #fff 0%, var(--ds-ground) 100%); border-bottom: 1px solid var(--ds-line); padding: clamp(1rem, 2.2vw, 1.6rem) 0 clamp(0.9rem, 2vw, 1.4rem); margin: 0; }
.atl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.75rem); align-items: start; }
.atl-hero h1 { font: 600 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.05 var(--ds-serif); color: var(--ds-navy); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.atl-hero .pa-eyebrow { margin-bottom: 0.4rem; }
.atl-lede { font: 400 var(--ds-t-m)/1.5 var(--ds-sans); color: var(--ds-muted); margin: 0; max-width: 36rem; }
main#main .atl-search { margin: 0; max-width: none; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: var(--ds-shadow); padding: 0.9rem 1rem 0.75rem; }
main#main .atl-search h2.atl-search-h { font: 600 var(--ds-t-s)/1.2 var(--ds-sans); color: var(--ds-navy); margin: 0 0 0.45rem; }
main#main .atl-search .alm-fsaform label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main#main .atl-search .alm-fsaform { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
main#main .atl-search .pa-search-field { min-height: 2.75rem; }
main#main .atl-search .alm-fsarow #alm-fsaclear { min-height: 2.75rem; padding: 0 0.4rem; }
main#main .atl-search .pa-search-field input { min-height: 2.6rem; }
main#main .atl-search .alm-fsarow .ds-btn { min-height: 2.75rem; }
.atl-search .alm-fsaform label { font: 500 var(--ds-t-xs)/1.3 var(--ds-sans); color: var(--ds-muted); }
.atl-search .alm-fsarow { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.35rem; }
.atl-search .pa-search-field { flex: 1 1 11rem; }
.atl-search #alm-fsahint { font-size: 0.75rem; line-height: 1.4; color: var(--ds-muted); margin: 0.45rem 0 0; }
.atl-search .alm-fsamsg:empty { display: none; }

/* ---------- map workspace ---------- */
main#main .atl-section { padding: clamp(0.85rem, 2vw, 1.25rem) 0 clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.atl-card { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); overflow: hidden; }
.atl-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title region' 'topics topics'; align-items: center; gap: 0.6rem 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--ds-line); }
main#main .atl-h { font: 600 1.05rem/1.2 var(--ds-sans); color: var(--ds-navy); margin: 0; flex: 0 0 auto; }
main#main .atl-h::after { content: none; display: none; }
.atl-topics { display: flex; gap: 0.4rem; flex: 1 1 auto; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.atl-chip { flex: 0 0 auto; font: 500 0.875rem/1 var(--ds-sans); color: var(--ds-navy); background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: 999px; padding: 0.5rem 0.85rem; cursor: pointer; }
.atl-chip:hover { border-color: var(--ds-teal); }
.atl-chip[aria-pressed="true"] { background: var(--ds-navy); border-color: var(--ds-navy); color: #fff; }
.atl-chip:focus-visible, .atl-stage:focus-visible, .atl-ctl button:focus-visible { outline: 3px solid var(--ds-amber); outline-offset: 2px; }
.atl-region { position: relative; grid-area: region; }
.atl-toolbar > h2 { grid-area: title; }
#atl-topics { grid-area: topics; }
.atl-region .alm-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; min-width: 13rem; padding: 0.45rem 0.8rem; border: 1px solid var(--ds-line); border-radius: var(--ds-r-s); background: #fff; cursor: pointer; text-align: left; }
.atl-region .alm-pick-l { font: 500 0.6875rem/1.2 var(--ds-sans); color: var(--ds-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.atl-region .alm-pick-v { font: 600 0.9375rem/1.2 var(--ds-sans); color: var(--ds-navy); }
.atl-region .alm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(22rem, 90vw); max-height: 22rem; overflow: auto; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: var(--ds-shadow-lift); }

.atl-host { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 19rem; }
.atl-rail { border-left: 1px solid var(--ds-line); background: #fff; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: clamp(26rem, 66vh, 46rem); overflow: auto; }
.atl-rail-hint { margin: 0; font: 400 0.8125rem/1.45 var(--ds-sans); color: var(--ds-muted); padding: 0.75rem; border: 1px dashed var(--ds-line); border-radius: var(--ds-r-s); }
.atl-rail-hint[hidden] { display: none; }
.atl-stage { position: relative; height: clamp(26rem, 66vh, 46rem); background: #e9f1f6; touch-action: pan-y; cursor: grab; overflow: hidden; user-select: none; -webkit-user-select: none; }
.atl-stage:active { cursor: grabbing; }
.atl-geo, .atl-over { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atl-over { pointer-events: none; }
.atl-over .atl-st, .atl-over .atl-cluster { pointer-events: auto; cursor: pointer; }
.atl-j { stroke: #b8c9d4; stroke-width: 0.9; stroke-linejoin: round; cursor: pointer; transition: fill 0.12s; }
.atl-j.atl-ca { fill: #fbfcfd; }
.atl-j.atl-us { fill: #f6f8f9; }
.atl-j:hover { fill: #eef6f6; }
.atl-j.is-sel { fill: #dff0ef; stroke: var(--ds-teal); stroke-width: 1.8; }
.atl-lab { fill: #5b7282; font-family: var(--ds-sans); font-weight: 600; letter-spacing: 0.04em; paint-order: stroke; stroke: rgba(255, 255, 255, 0.92); stroke-width: 3px; }
.atl-lab-name { fill: #3d5566; font-weight: 600; letter-spacing: 0.01em; }
.atl-st circle, .atl-st rect { stroke: #fff; stroke-width: 1.6; }
.atl-st:hover circle, .atl-st:hover rect, .atl-st:focus circle, .atl-st:focus rect, .atl-st.is-on circle, .atl-st.is-on rect { stroke: var(--ds-navy); stroke-width: 2.4; }
.atl-st:focus, .atl-cluster:focus { outline: none; }
.atl-cluster circle { fill: rgba(91, 114, 130, 0.78); stroke: #fff; stroke-width: 1.6; }
.atl-cluster:hover circle, .atl-cluster:focus circle { fill: var(--ds-teal-ink); }
.atl-cluster text { fill: #fff; font: 700 10.5px var(--ds-sans); }
.atl-pin-halo { fill: rgba(245, 163, 43, 0.25); stroke: var(--ds-amber); stroke-width: 1.5; }
.atl-pin-dot { fill: var(--ds-amber); stroke: var(--ds-navy); stroke-width: 2; }
.atl-pin-tag { fill: var(--ds-navy); }
.atl-pin-text { fill: #fff; font: 600 11.5px var(--ds-sans); }

.atl-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 2rem; font: 500 var(--ds-t-s)/1.4 var(--ds-sans); color: var(--ds-muted); text-align: center; background: rgba(233, 241, 246, 0.85); }
.atl-status[hidden] { display: none; }
.atl-status.is-fail { color: var(--ds-navy); }
.atl-hint { position: absolute; top: 0.75rem; left: 50%; transform: translateX(-50%); margin: 0; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(9, 42, 64, 0.82); color: #fff; font: 500 0.75rem/1.2 var(--ds-sans); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.atl-hint.is-on { opacity: 1; }
.atl-ctl { position: absolute; right: 0.85rem; bottom: 0.85rem; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-s); box-shadow: var(--ds-shadow); overflow: hidden; }
.atl-ctl button { width: 2.5rem; height: 2.5rem; border: 0; border-bottom: 1px solid var(--ds-line); background: #fff; font: 600 1.15rem/1 var(--ds-sans); color: var(--ds-navy); cursor: pointer; }
.atl-ctl button:last-child { border-bottom: 0; }
.atl-ctl button:hover { background: var(--ds-ground); }

.atl-legend { order: 2; }
.atl-leg-h { margin: 0 0 0.45rem; font: 600 0.8125rem/1.3 var(--ds-sans); color: var(--ds-navy); }
.atl-leg-row { margin: 0 0 0.7rem; }
.atl-leg-c { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.25rem; font: 500 0.75rem/1.3 var(--ds-sans); color: var(--ds-muted); }
.atl-leg-shape { flex: 0 0 auto; width: 10px; height: 10px; background: #8aa0ae; }
.atl-leg-ca { border-radius: 50%; }
.atl-leg-us { transform: rotate(45deg) scale(0.85); }
.atl-leg-sw { display: grid; grid-template-columns: 1fr; gap: 3px; }
.atl-leg-cell { display: grid; grid-template-columns: 1.6rem 1fr; align-items: center; gap: 0.5rem; min-width: 0; }
.atl-leg-swatch { height: 11px; border-radius: 3px; }
.atl-leg-v { font: 500 0.75rem/1.2 var(--ds-sans); color: var(--ds-navy); }
.atl-leg-note { margin: 0.35rem 0 0; font: 400 0.6875rem/1.4 var(--ds-sans); color: var(--ds-muted); }

.atl-drawer { order: 1; position: relative; background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 0.9rem 1rem; }
.atl-drawer[hidden] { display: none; }
.atl-drawer:focus { outline: none; }
.atl-x { position: absolute; top: 0.4rem; right: 0.5rem; width: 2rem; height: 2rem; border: 0; background: none; font: 400 1.4rem/1 var(--ds-sans); color: var(--ds-muted); cursor: pointer; }
.atl-d-k { margin: 0 0 0.2rem; font: 600 0.6875rem/1.3 var(--ds-sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ds-teal-ink); }
.atl-d-h { margin: 0 1.5rem 0.4rem 0; font: 600 1.05rem/1.25 var(--ds-sans); color: var(--ds-navy); }
.atl-d-v { margin: 0 0 0.15rem; font: 400 0.9375rem/1.3 var(--ds-sans); color: var(--ds-navy); }
.atl-d-v strong { font: 700 1.6rem/1.1 var(--ds-sans); }
.atl-d-m, .atl-d-s, .atl-d-note { margin: 0.35rem 0 0; font: 400 0.8125rem/1.45 var(--ds-sans); color: var(--ds-muted); }
.atl-d-note { padding-top: 0.5rem; border-top: 1px solid var(--ds-line); }
.atl-d-go { margin-top: 0.75rem; width: 100%; justify-content: center; }

.atl-pending { margin: 0; padding: 0.5rem 1rem; font: 500 var(--ds-t-xs)/1.4 var(--ds-sans); color: var(--ds-muted); border-top: 1px solid var(--ds-line); }
.atl-foot { margin: 0; padding: 0.65rem 1rem 0.8rem; font: 400 0.75rem/1.45 var(--ds-sans); color: var(--ds-muted); border-top: 1px solid var(--ds-line); }
.atl-lrp { display: inline-block; margin-left: 0.35rem; font-weight: 600; color: var(--ds-teal-ink); }

/* ---------- evidence heading ---------- */
.atl-evhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem; }
.atl-evh { margin: 0; font: 600 var(--ds-t-xl)/1.2 var(--ds-serif); color: var(--ds-navy); }
.atl-filter { position: relative; }
.atl-filter .alm-pick { display: flex; flex-direction: column; align-items: flex-start; padding: 0.4rem 0.75rem; border: 1px solid var(--ds-line); border-radius: var(--ds-r-s); background: #fff; cursor: pointer; }
.atl-filter .alm-pick-l { font: 500 0.6875rem/1.2 var(--ds-sans); color: var(--ds-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.atl-filter .alm-pick-v { font: 600 0.875rem/1.2 var(--ds-sans); color: var(--ds-navy); }
.atl-filter .alm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(36rem, 92vw); max-height: 26rem; overflow: auto; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: var(--ds-shadow-lift); padding: 0.75rem; }

/* ---------- compact invitation ---------- */
.atl-invite { padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.atl-invite-box { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); }
.atl-invite-box > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.1rem 1.25rem; cursor: pointer; }
.atl-invite-box > summary::-webkit-details-marker { display: none; }
.atl-invite-copy { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1 1 22rem; }
.atl-invite-h { font: 600 1.125rem/1.25 var(--ds-sans); color: var(--ds-navy); }
.atl-invite-sub { font: 400 var(--ds-t-s)/1.45 var(--ds-sans); color: var(--ds-muted); }
.atl-invite-box[open] > summary { border-bottom: 1px solid var(--ds-line); }
.atl-invite-box[open] .atl-invite-btn { visibility: hidden; }
.atl-invite-box .lead-capture { padding-top: 0; }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  .atl-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .atl-toolbar { padding: 0.7rem 0.75rem; }
  .atl-h { flex: 1 1 100%; }
  .atl-topics { order: 3; flex: 1 1 100%; }
  .atl-toolbar { grid-template-columns: 1fr; grid-template-areas: 'title' 'topics' 'region'; }
  .atl-region .alm-pick { width: 100%; }
  .atl-stage { height: 64vh; min-height: 22rem; }
  .atl-host { grid-template-columns: 1fr; }
  .atl-rail { border-left: 0; border-top: 1px solid var(--ds-line); max-height: none; }
  .atl-ctl { right: 0.5rem; bottom: auto; top: 0.5rem; }
}

/* rail text: page-level main p rules are more specific than plain class rules */
main#main .atl-rail p, main#main .atl-rail span, main#main .atl-rail li { font-size: 0.8125rem; line-height: 1.45; }
main#main .atl-rail .atl-leg-h { font-size: 0.875rem; }
main#main .atl-rail .atl-leg-v { font-size: 0.75rem; line-height: 1.2; }
main#main .atl-rail .atl-leg-note { font-size: 0.75rem; }
main#main .atl-search #alm-fsamsg { font-size: 0.875rem; line-height: 1.45; margin: 0.6rem 0 0; }
main#main .atl-search #alm-fsamsg button, main#main .atl-search #alm-fsamsg li { font-size: 0.875rem; }
main#main .atl-search #alm-fsahint { font-size: 0.75rem; line-height: 1.4; }
@media (max-width: 64rem) {
  .atl-host { grid-template-columns: 1fr; }
  .atl-rail { border-left: 0; border-top: 1px solid var(--ds-line); max-height: none; }
}
main#main .atl-foot, main#main .atl-foot p { font-size: 0.75rem; line-height: 1.45; color: var(--ds-muted); }
main#main .atl-foot { max-width: none; }
.atl-evtitle { min-width: 0; }
main#main .atl-withheld .alm-withheld-note { margin: 0.3rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ds-muted); }

/* founder 21 Nov 12:37: on a phone the province and state list fits the card (it was cut off at the right) */
@media (max-width: 600px) { .atl-region .alm-pop { left: 0; right: 0; width: auto; } .atl-region .alm-pop button { display: grid; grid-template-columns: 1fr; gap: .1rem; } }
