/* The progress atlas shares MAYA's limestone, carved edges and forest surfaces. */
.progress-atlas{--progress-gold:#e6c27d;--progress-jade:#a2d5ba;--progress-muted:#b6c5b8;--progress-line:#395247;min-width:0}
.progress-panorama{position:relative;min-height:220px;display:flex;align-items:flex-end;isolation:isolate;overflow:hidden;background:#172b20;margin:-20px -22px 0}
.progress-panorama>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 56%;z-index:-2}
.progress-panorama::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0b1c15f5 0%,#0e2417a8 38%,transparent 75%);z-index:-1}
.progress-panorama>div{padding:65px 30px 24px;width:100%}
.progress-panorama h3{font-size:31px;letter-spacing:-.025em;line-height:1.1;margin:0 0 10px;color:#fff3d8}
.progress-panorama p{max-width:57ch;font-size:14px;color:#e8e4cd;margin:0;line-height:1.55}
.progress-panorama button{margin-top:15px}.progress-current{display:inline-flex;margin-top:13px;align-items:center;gap:8px;color:var(--progress-gold);font-size:12px;font-weight:800}.progress-current::before{content:"";width:7px;height:7px;background:var(--progress-gold);transform:rotate(45deg)}
.progress-era-ribbon{display:flex;overflow:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#738775 #172c22;border-bottom:1px solid var(--progress-line);margin:0 -6px 0;padding:0 6px 10px;gap:0}
.progress-era-ribbon>button{flex:1 0 151px;min-width:0;display:flex;align-items:center;gap:7px;padding:15px 8px 12px;text-align:left;background:none;border:0;border-bottom:3px solid transparent;box-shadow:none;scroll-snap-align:start;color:var(--progress-muted);font-size:12px;line-height:1.4}
.progress-era-ribbon .thumb{display:block;width:49px;height:51px;flex:0 0 49px;background-repeat:no-repeat}.progress-era-ribbon b{display:block;color:#e7e8d5;line-height:1.35;font-size:12px}.progress-era-ribbon small{display:block;margin-top:5px;font-size:10px;color:var(--progress-muted);white-space:nowrap}.progress-era-ribbon .future .thumb{filter:saturate(.5)}
.progress-era-ribbon>button.current{border-bottom-color:var(--progress-gold)}.progress-era-ribbon>button.current small{color:var(--progress-gold)}.progress-era-ribbon>button.complete{border-bottom-color:#759f88}.progress-era-ribbon>button[aria-pressed=true]{background:#294235}.progress-era-ribbon>button:hover{background:#233c2f}.progress-era-ribbon>button:focus-visible{outline:2px solid var(--progress-gold);outline-offset:-3px}
.progress-city-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:20px 0;border-bottom:1px solid var(--progress-line)}.progress-city-facts dt{color:var(--progress-muted);font-size:11px;margin-bottom:5px}.progress-city-facts dd{margin:0;color:#f4e6c6;font-size:23px;font-weight:800;font-variant-numeric:tabular-nums}.progress-city-facts dd small{font-size:12px;color:var(--progress-muted);font-weight:500}
.progress-branch-heading{display:flex;justify-content:space-between;align-items:baseline;gap:18px;margin:24px 0 12px}.progress-branch-heading h3{font-size:19px;margin:0}.progress-branch-heading p{font-size:12px;margin:0;color:var(--progress-muted)}
.progress-branches{display:flex;gap:4px;overflow:auto;scrollbar-width:thin;padding-bottom:8px}.progress-branches button{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:10px 13px;font-size:12px;border:1px solid transparent;background:transparent;color:var(--progress-muted)}.progress-branches .icon{width:17px;height:17px}.progress-branches button[aria-pressed=true]{background:#2d4536;border-color:#8b9871;color:#f5e2b4}.progress-branches button:hover{background:#263f31}.progress-branches button:focus-visible{outline:2px solid var(--progress-gold);outline-offset:-2px}
.progress-branch-view[hidden],.progress-node-detail[hidden],.progress-era-detail[hidden]{display:none!important}
.progress-branch-caption{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--progress-muted);margin:7px 0 9px}.progress-branch-caption>span{font-size:11px;color:#b3bfa3;white-space:nowrap}
.progress-map-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;background:#12271e;border:1px solid #314b3c;scrollbar-width:thin;scrollbar-color:#8a9d7d #172c22;overscroll-behavior-x:contain;border-radius:2px}
.progress-map-scroll:focus-visible{outline:2px solid var(--progress-gold);outline-offset:3px}
.progress-map-board{position:relative;min-width:100%}.progress-connections{position:absolute;inset:0;pointer-events:none;overflow:visible}.progress-link{fill:none;stroke:#567666;stroke-width:1.6;stroke-linecap:round;transition:stroke 180ms ease,opacity 180ms ease;opacity:.65}.progress-link.construction{stroke-dasharray:5 5;stroke:#9b9a70}.progress-link.power{stroke:#c79f5c;stroke-width:1.4;stroke-dasharray:2 4}.progress-link.water{stroke:#5ea6ac}.progress-link.highlight{stroke:#efcd85;opacity:1;stroke-width:2.2}
.progress-node{position:absolute;width:208px;height:110px;padding:8px 11px 8px 4px;display:flex;align-items:center;gap:3px;text-align:left;border:1px solid #526452;background:#1b3427;color:#f0e5c9;box-shadow:0 5px 12px #06130b55;border-radius:3px;transition:border-color 160ms ease,background 160ms ease}
.progress-node .progress-node-art{width:84px;height:87px;flex:0 0 84px;display:block;background-repeat:no-repeat}.progress-node-copy{display:flex;min-width:0;height:100%;flex-direction:column;justify-content:center}.progress-node-copy b{font-size:12px;line-height:1.25;font-weight:800}.progress-node-copy small{font-size:10px;line-height:1.25;color:var(--progress-jade);margin-top:7px}.progress-node-era{font-size:9px;color:var(--progress-muted);margin-top:6px}.progress-node.locked{background:#192d24;border-color:#384c40}.progress-node.locked .progress-node-art{filter:saturate(.4) brightness(.85)}.progress-node.locked small{color:#bcbb9e}.progress-node.built{border-color:#699e7b}.progress-node[aria-pressed=true]{background:#324b33;border-color:var(--progress-gold)}.progress-node:hover{background:#304936;border-color:#b2b583}.progress-node:focus-visible{outline:2px solid #f4d488;outline-offset:3px}
.progress-legend{display:flex;gap:17px;flex-wrap:wrap;color:var(--progress-muted);font-size:10px;padding:10px 1px 0}.progress-legend>span{display:inline-flex;align-items:center;gap:6px}.progress-legend i{display:block;width:23px;height:0;border-top:2px solid #6f8f7f}.progress-legend .construction{border-top-style:dashed;border-color:#b0ac80}.progress-legend .power{border-top-style:dotted;border-color:#d0ad70}.progress-legend .water{border-color:#73b6bc}
.progress-detail-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:30px;margin-top:26px;padding-top:23px;border-top:1px solid var(--progress-line)}.progress-building-details,.progress-era-details{min-width:0}.progress-era-details{border-left:1px solid var(--progress-line);padding-left:27px}.progress-detail-title{display:flex;gap:15px;align-items:center;margin:0 0 19px}.progress-detail-title>.thumb{width:102px;height:104px;flex:0 0 102px;background-repeat:no-repeat}.progress-detail-title h3,.progress-era-heading h3{font-size:20px;line-height:1.2;margin:4px 0 9px}.progress-detail-title p{font-size:12px;line-height:1.6;color:var(--progress-muted);margin:0}.progress-detail-state{font-size:10px!important;font-weight:800;text-transform:none;color:var(--progress-gold)!important;margin:0!important}.progress-detail-state.built{color:var(--progress-jade)!important}.progress-detail-state.locked{color:#c4c4a5!important}
.progress-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:0 0 20px}.progress-facts dt{font-size:10px;color:var(--progress-muted);margin-bottom:5px}.progress-facts dd{font-size:16px;color:#ede1bf;font-weight:750;margin:0;font-variant-numeric:tabular-nums}.progress-node-detail h4{font-size:11px;font-weight:700;color:var(--progress-muted);margin:15px 0 8px}.progress-goods{display:flex;flex-wrap:wrap;gap:6px}.progress-good{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;background:#10251c;font-size:10px;color:#d3dbc5}.progress-good .icon{width:17px;height:17px;flex:0 0 17px}.progress-good b{color:#f1dfb5;font-size:12px;font-variant-numeric:tabular-nums}
.progress-recipe{display:flex;align-items:center;gap:10px;margin:14px 0}.progress-recipe>div{flex:1;min-width:0}.progress-recipe h4{margin-top:0}.progress-recipe-arrow .icon{width:18px;height:18px;color:var(--progress-gold)}
.progress-cost,.progress-neighbors{border-top:1px solid var(--progress-line);margin-top:17px;padding-top:12px;font-size:12px}.progress-cost summary,.progress-neighbors summary{color:#ddc79b;font-weight:700;cursor:pointer}.progress-cost .progress-goods{margin-top:10px}.progress-neighbors p{display:flex;flex-wrap:wrap;gap:5px;margin:0}.progress-neighbors button{padding:5px 7px;font-size:10px;background:#203c2c;border:1px solid #3a5140;border-radius:2px}.progress-neighbors button:disabled{color:var(--progress-muted);opacity:.7}.progress-building-status{font-size:11px;color:var(--progress-muted);line-height:1.6;margin-top:14px}.progress-build{display:block;width:100%;margin-top:16px;font-size:12px;line-height:1.4}
.progress-era-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.progress-era-heading>strong{font-size:27px;font-weight:800;color:#cdb27d;line-height:1;font-variant-numeric:tabular-nums}.progress-era-heading>strong>small{display:block;font-size:9px;color:var(--progress-muted);font-weight:500;margin-top:5px}.progress-era-detail>p{font-size:12px;color:var(--progress-muted);line-height:1.6;margin:7px 0 17px}.progress-goal-count{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#dfd6b6;margin:19px 0 6px}.progress-goal-count b{color:var(--progress-gold)}.progress-goals{list-style:none;padding:0;margin:0}.progress-goals li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:10px 0;border-bottom:1px solid #2d4537;font-size:11px;color:var(--progress-muted)}.progress-goals strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:#e1d4b6;font-size:11px}.progress-goals progress{width:100%;grid-column:1/-1;height:3px;border:0;accent-color:#c3aa70}.progress-goals progress::-webkit-progress-bar{background:#2b4437}.progress-goals progress::-webkit-progress-value{background:#b9a16b}.progress-goals .met{color:var(--progress-jade)}.progress-goals .met progress::-webkit-progress-value{background:#83b294}.progress-goals .met strong{color:var(--progress-jade)}.progress-era-open{display:flex;align-items:center;gap:8px;color:var(--progress-jade)!important}.progress-era-open .icon{width:17px;height:17px}.progress-victory{font-size:12px;color:#e5cb92;background:#2c4230;padding:14px;margin-top:20px}.progress-other{margin-top:25px;padding-top:20px;border-top:1px solid var(--progress-line)}
@media(max-width:760px){.progress-panorama{margin:-16px -14px 0;min-height:200px}.progress-panorama>div{padding:58px 20px 20px}.progress-panorama h3{font-size:26px}.progress-panorama p{font-size:12px;max-width:45ch}.progress-era-ribbon>button{flex-basis:159px}.progress-city-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:17px 0}.progress-city-facts dd{font-size:21px}.progress-branch-heading{display:block;margin-top:22px}.progress-branch-heading p{margin-top:8px;line-height:1.6}.progress-branches{margin:0 -5px;padding:0 5px 8px;scroll-snap-type:x proximity}.progress-branches button{scroll-snap-align:start}.progress-branch-caption{display:block;line-height:1.5;margin:8px 0}.progress-branch-caption>span{display:block;font-size:10px;margin-top:4px}.progress-map-scroll{max-height:422px}.progress-detail-layout{grid-template-columns:1fr;gap:25px;margin-top:20px;padding-top:20px}.progress-era-details{border-left:0;border-top:1px solid var(--progress-line);padding:23px 0 0}.progress-detail-title{gap:10px}.progress-detail-title>.thumb{width:88px;height:91px;flex-basis:88px}.progress-detail-title h3{font-size:19px}.progress-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.progress-other{display:grid;grid-template-columns:1fr}.progress-legend{gap:10px;font-size:9px}.progress-goals li{font-size:12px}}
@media(prefers-reduced-motion:reduce){.progress-node,.progress-link{transition:none}.progress-map-scroll,.progress-era-ribbon{scroll-behavior:auto}}

/* Keep the game's notched button surface; its ::before layer uses these tokens. */
.progress-era-ribbon>button{--fill:transparent;--edge:transparent;color:var(--progress-muted)}
.progress-era-ribbon>button[aria-pressed=true]{--fill:#294235;--edge:#476445;color:#e7e8d5}
.progress-era-ribbon>button:not(:disabled):hover{--fill:#233c2f;--edge:#526d50}
.progress-branches button{--fill:transparent;--edge:transparent}
.progress-branches button[aria-pressed=true]{--fill:#2d4536;--edge:#8b9871;color:#f5e2b4}
.progress-branches button:not(:disabled):hover{--fill:#263f31;--edge:#637957}
.progress-node{--fill:#1b3427;--edge:#526452}
.progress-node.locked{--fill:#192d24;--edge:#384c40}
.progress-node.built{--edge:#699e7b}
.progress-node[aria-pressed=true]{--fill:#324b33;--edge:#e6c27d;color:#f0e5c9}
.progress-node:not(:disabled):hover{--fill:#304936;--edge:#b2b583}
.progress-node:focus-visible{--edge:#ffe5a4}
.progress-neighbors button{--fill:#203c2c;--edge:#3a5140}

/* Water movement is distinct from paid upkeep and the observers' records. */
.progress-link.care{stroke:#93b49c;stroke-dasharray:6 3 1 3}
.progress-link.observation{stroke:#baa5c2;stroke-dasharray:3 4}
.progress-link.care.highlight,.progress-link.observation.highlight{stroke:#efcd85}
.progress-legend .care{border-color:#93b49c;border-top-style:dashed}
.progress-legend .observation{border-color:#c2add0;border-top-style:dotted}
.progress-role-facts{margin:15px 0 5px;grid-template-columns:repeat(2,minmax(0,1fr))}
.progress-panorama{min-height:190px}
.progress-panorama>div{padding-top:45px;padding-bottom:20px}
@media(max-width:760px){.progress-panorama{min-height:180px}.progress-panorama>div{padding-top:40px;padding-bottom:18px}}

/* Keep selected graph nodes legible under the shared pressed/hover button treatment. */
.progress-atlas .progress-node-art{background-size:400% 400%}
.progress-atlas .progress-node[aria-pressed=true],.progress-atlas .progress-node[aria-pressed=true]:not(:disabled):hover{--fill:#324b33;--edge:#e6c27d;color:#f0e5c9}
.progress-atlas .progress-era-ribbon>button[aria-pressed=true]:not(:disabled):hover{--fill:#294235;--edge:#8b9871;color:#e7e8d5}
.progress-atlas .progress-branches button[aria-pressed=true]:not(:disabled):hover{--fill:#2d4536;--edge:#8b9871;color:#f5e2b4}
