/* Glacier Time Machine — landscape, source inventories and foreland monitoring */
header .nav-links a[aria-current="location"] { background:var(--brand);color:#fff;border-radius:8px;padding:7px 10px; }
#glacier-history {padding:18px 0 48px;min-height:0;display:block;background:linear-gradient(180deg,#f4f9fa,#f6f8f7);color:#173445;scroll-margin-top:140px;}
#glacier-history .tm-shell{width:min(1340px,calc(100% - 48px));}
.time-machine *, .time-machine *:before,.time-machine *:after{box-sizing:border-box;}
.time-machine [hidden]{display:none!important;}
.time-machine button,.time-machine input,.time-machine select{font:inherit;}
.time-machine button{cursor:pointer;}
.time-machine button:focus-visible,.time-machine a:focus-visible,.time-machine input:focus-visible,.time-machine select:focus-visible,.time-machine summary:focus-visible{outline:3px solid #e6a449;outline-offset:3px;}
.time-machine svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.tm-heading{margin:0 6px 18px;}
.tm-eyebrow{display:inline-flex;align-items:center;gap:9px;background:#e4f3f6;color:#086673;border-radius:9px;padding:7px 11px;font-size:.85rem;font-weight:750;margin-bottom:10px;}
.tm-eyebrow svg{width:19px;height:19px;}
.tm-heading :is(h1, h2){margin:0;color:#142c50;font-size:clamp(1.8rem,3.2vw,2.85rem);font-weight:780;letter-spacing:-.045em;line-height:1.12;}
.tm-heading :is(h1, h2):after{content:"";display:block;height:3px;width:64px;background:#087481;margin:12px 0 9px;}
.tm-heading p{margin:0;color:#496382;font-size:clamp(1rem,1.4vw,1.25rem);line-height:1.5;}
.tm-main-panel{padding:20px 20px 12px;border:1px solid #dfebed;border-radius:20px;background:#fff;box-shadow:0 8px 30px rgba(35,67,72,.035);}
.tm-landscape-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:12px;align-items:stretch;}
.tm-viewport{position:relative;border-radius:14px;background:linear-gradient(180deg,#e0eff5,#f0f6f4 55%,#dee8e3);overflow:hidden;height:440px;isolation:isolate;}
.tm-viewport #montmine3d{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab;}
.tm-viewport #montmine3d:active{cursor:grabbing;}
.tm-viewport #glacier-map{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;stroke:none;}
.tm-map-toolbar{position:absolute;left:10px;right:10px;top:10px;z-index:3;display:flex;gap:8px;justify-content:space-between;align-items:flex-start;pointer-events:none;}
.tm-segment{display:flex;gap:0;border:1px solid #cedeeb;border-radius:24px;background:rgba(255,255,255,.94);padding:2px;pointer-events:auto;box-shadow:0 2px 8px rgba(18,53,61,.04);}
.tm-segment button{border:0;background:transparent;color:#35556c;border-radius:22px;font-size:.8rem;font-weight:700;padding:8px 14px;white-space:nowrap;}
.tm-segment button.active{background:#066c78;color:#fff;}
.tm-map-bottom{position:absolute;bottom:10px;left:10px;right:10px;display:flex;justify-content:space-between;gap:10px;align-items:end;z-index:3;pointer-events:none;}
.tm-map-badge{border-radius:7px;padding:7px 11px;background:rgba(16,56,62,.91);color:#fff;font-size:.76rem;font-weight:750;}
.tm-map-credit{border-radius:7px;padding:6px 8px;background:rgba(255,255,255,.9);color:#385761;font-size:.66rem;max-width:55%;text-align:right;}
.tm-camera-controls{position:absolute;right:10px;top:60px;display:grid;gap:4px;z-index:3;}
.tm-camera-controls button{width:31px;height:31px;background:rgba(255,255,255,.93);border:1px solid #d3e1e2;border-radius:7px;color:#166270;font-size:1.2rem;display:grid;place-items:center;}
.tm-camera-controls svg{width:17px;height:17px;}
.tm-map-fallback{position:absolute;inset:30% 10%;background:#fff;padding:18px;border-radius:12px;text-align:center;}
.tm-inventory{background:linear-gradient(140deg,#edf7f9,#f2f8f9);border-radius:14px;padding:20px 22px;min-width:0;color:#244666;}
.tm-inventory h3{margin:0 0 10px;font-size:.81rem;line-height:1.35;}
.tm-inventory-year{display:block;color:#142c50;font-size:2.4rem;line-height:1.05;font-weight:800;letter-spacing:-.025em;}
.tm-inventory>a:not(.tm-source-shortcut){display:inline-block;margin-top:9px;font-size:.8rem;font-weight:750;text-decoration:none;}
.tm-source-period{display:block;font-size:.7rem;color:#617b8c;margin-top:5px;line-height:1.4;}
.tm-short-rule{width:47px;height:3px;background:#0e7480;margin:19px 0 12px;}
.tm-inventory p{margin:0;font-size:.89rem;line-height:1.5;}
.tm-legend{list-style:none;margin:18px 0;padding:0;display:grid;gap:13px;}
.tm-legend li{display:flex;gap:11px;align-items:center;font-size:.78rem;line-height:1.4;}
.tm-key{display:block;width:31px;height:19px;border:2px solid #088ad8;background:#088ad81c;border-radius:4px;transform:skewY(-12deg);flex-shrink:0;}
.tm-key-free{border-color:#db9f43;background:#ebbd743c;}
.tm-key-ferpecle{border-color:#1b9662;background:#1b966227;}
.tm-inventory .tm-inventory-scope{font-size:.72rem;margin-bottom:10px;font-weight:650;}
.tm-inventory .tm-inventory-caveat{font-size:.71rem;color:#617888;}
.tm-source-shortcut{display:block;margin-top:12px;font-size:.72rem;font-weight:700;text-decoration:none;}
.tm-timebar{display:flex;align-items:center;gap:22px;margin-top:19px;}
.tm-primary{border:0;border-radius:9px;color:#fff;background:#06707c;display:inline-flex;gap:15px;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;padding:10px 15px;}
.tm-primary:hover{background:#055b66;}
.tm-play{border-radius:12px;padding:12px 21px;min-height:44px;white-space:nowrap;flex-shrink:0;}
.tm-play>svg{width:19px;height:19px;fill:#fff;stroke:#fff;}
.tm-play[aria-pressed="true"]>svg{fill:none;}
.tm-timeline{display:flex;gap:16px;align-items:center;flex:1;min-width:0;border-left:1px solid #c8d7dc;border-right:1px solid #c8d7dc;padding:0 20px;}
.tm-timeline>label{font-size:.77rem;line-height:1.3;color:#32526a;max-width:104px;}
.tm-timeline-track{flex:1;position:relative;min-width:0;}
#glacier-slider{position:relative;z-index:1;width:100%;height:21px;margin:0;opacity:0;cursor:pointer;display:block;}
#glacier-slider:focus-visible{opacity:1;outline-offset:1px;accent-color:#08717c;}
.tm-year-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:relative;margin-top:-21px;}
.tm-year-buttons:before{content:"";height:1.5px;background:#abbfc8;position:absolute;top:10px;left:8.333%;right:8.333%;}
.tm-year-buttons button{position:relative;padding:27px 0 7px;background:transparent;border:0;color:#385671;font-size:.76rem;font-weight:700;line-height:1.2;}
.tm-year-buttons button:before{content:"";width:17px;height:17px;border:1.5px solid #a5bbc6;background:#fff;position:absolute;top:2px;left:calc(50% - 8.5px);border-radius:50%;}
.tm-year-buttons button[aria-pressed="true"]{color:#006b78;}
.tm-year-buttons button[aria-pressed="true"]:before{border-color:#006b78;background:#006b78;box-shadow:0 0 0 3px #e3f3f6;}
.tm-own-observations{border:1px solid #dce9eb;border-radius:12px;background:#edf6f8;color:#466786;font-size:.78rem;display:flex;align-items:center;gap:9px;padding:10px 14px;max-width:244px;text-align:left;line-height:1.35;}
.tm-own-observations svg{width:20px;height:20px;}
.tm-map-help{margin:12px 0 0;text-align:center;font-size:.7rem;color:#637b85;}
.tm-notice,.tm-story{padding:13px 16px;background:#eef7f8;border-radius:11px;margin-top:12px;font-size:.83rem;line-height:1.55;color:#35566c;}
.tm-notice p{margin:7px 0;}
.tm-notice a{font-weight:700;}
.tm-comparison-banner{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fcf6eb;padding:10px 14px;border-radius:10px;margin-top:12px;font-size:.8rem;color:#77541e;}
.tm-comparison-banner button{border:0;color:#77541e;background:transparent;font:inherit;text-decoration:underline;}
.tm-feature-grid{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:16px;margin-top:18px;align-items:stretch;}
.tm-feature-card{display:flex;gap:15px;min-width:0;background:#fff;border:1px solid #dfebed;border-radius:17px;padding:20px 19px 14px;}
.tm-card-icon{width:46px;height:46px;flex-shrink:0;background:#e8f5f7;border-radius:50%;display:grid;place-items:center;color:#086a77;}
.tm-card-icon svg{width:25px;height:25px;}
.tm-card-body{min-width:0;flex:1;}
.tm-card-body h3{margin:0 0 8px;color:#142e50;font-size:1.03rem;line-height:1.25;letter-spacing:-.025em;font-weight:760;}
.tm-card-body p{margin:0 0 11px;color:#57728b;font-size:.78rem;line-height:1.5;}
.tm-compare-selects{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:10px;}
.tm-compare-selects>span{color:#117080;text-align:center;}
.tm-compare-selects select{width:100%;background:#fff;border:1px solid #d7e5e8;border-radius:7px;color:#244465;font-size:.84rem;padding:7px 9px;}
.tm-error{color:#9d322a!important;margin:8px 0 0!important;}
.tm-card-result{margin-top:12px;border-top:1px solid #e4ecee;padding-top:10px;font-size:.78rem;line-height:1.5;color:#446275;}
.tm-card-result strong{color:#086877;}
.tm-point-result{margin:15px 0 10px;font-size:.76rem;}
.tm-point-result>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border-bottom:1px solid #e5edef;padding:7px 0;align-items:start;}
.tm-point-result dt{color:#57728b;}
.tm-point-result dd{margin:0;color:#315577;text-align:right;font-weight:650;overflow-wrap:anywhere;}
.tm-card-body .tm-small{font-size:.71rem;margin-bottom:7px;}
.tm-coordinate-details{font-size:.69rem;color:#597986;}
.tm-coordinate-details summary{cursor:pointer;margin:4px 0;}
.tm-coordinate-details form{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px;}
.tm-coordinate-details label{min-width:0;font-size:.67rem;}
.tm-coordinate-details input{display:block;width:100%;border:1px solid #d7e5e8;border-radius:5px;padding:5px 3px;font-size:.72rem;}
.tm-secondary{border:1px solid #cbdfe1;background:#eff7f7;color:#136978;border-radius:6px;padding:5px 9px;grid-column:1/-1;font-size:.73rem!important;}
.tm-card-body .tm-selected-point{font-size:.65rem;margin:6px 0 0;color:#58757b;overflow-wrap:anywhere;}
.tm-ecology-content{display:grid;grid-template-columns:minmax(95px,.9fr) minmax(0,1fr);gap:13px;}
.tm-ecology-content figure{margin:0;position:relative;overflow:hidden;border-radius:10px;}
.tm-ecology-content img{width:100%;height:129px;object-fit:cover;object-position:43% 95%;border-radius:10px;display:block;transform:scale(2.3);transform-origin:43% 100%;}
.tm-ecology-content figcaption{position:absolute;bottom:4px;left:4px;border-radius:4px;background:#17313abb;color:#fff;font-size:.55rem;padding:3px 4px;}
.tm-ecology-content p{font-size:.76rem;}
.tm-text-button{padding:0;border:0;background:transparent;color:#076c79;font-size:.73rem!important;font-weight:750!important;display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;line-height:1.4;}
.tm-text-button:hover{text-decoration:underline;}
.tm-preparation{margin-top:12px;display:inline-flex;align-items:center;gap:6px;color:#a7661d;background:#fcf3e6;border-radius:18px;font-size:.62rem;white-space:nowrap;padding:5px 8px;}
.tm-preparation svg{width:16px;height:16px;}
.tm-details{margin-top:15px;border:1px solid #dfebed;border-radius:17px;background:#fff;overflow:hidden;}
.tm-details>summary{display:flex;align-items:center;gap:17px;list-style:none;cursor:pointer;padding:17px 22px;color:#116d7a;}
.tm-details>summary::-webkit-details-marker{display:none;}
.tm-details>summary>svg{width:25px;height:25px;}
.tm-details>summary>span{flex:1;}
.tm-details>summary strong{display:block;color:#142e50;font-size:1rem;}
.tm-details>summary small{display:block;color:#607b91;font-size:.7rem;margin-top:4px;}
.tm-details>summary .tm-chevron{width:19px;height:19px;transition:transform .2s;}
.tm-details[open]>summary .tm-chevron{transform:rotate(180deg);}
.tm-details-body{padding:0 24px 24px;border-top:1px solid #e8eff0;color:#4e6a7c;font-size:.88rem;line-height:1.6;}
.tm-details-body h3{font-size:1.05rem;color:#193f59;margin:0 0 8px;}
.tm-details-body p{margin:8px 0 13px;}
.tm-science-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:20px;margin:20px 0;}
.tm-science-card{min-width:0;background:#f6fafb;border:1px solid #e1eced;border-radius:14px;padding:17px;}
.tm-chart-title{display:flex;justify-content:space-between;gap:10px;align-items:start;}
.tm-chart-title>span{font-size:.75rem;white-space:nowrap;color:#076978;}
.tm-science-card p{font-size:.79rem;}
#tmAreaChart{width:100%;display:block;margin-top:9px;stroke:none;}
.tm-source-areas>div{display:flex;justify-content:space-between;border-bottom:1px solid #dce7e9;padding:8px 0;}
.tm-source-areas dd{margin:0;font-weight:750;color:#156672;}
.tm-scientific-note{padding:10px 12px;border-left:3px solid #14717b;background:#edf5f7;}
.tm-analysis{padding:17px;border-radius:14px;border:1px solid #e0ecee;margin-bottom:20px;}
.tm-analysis-heading{display:flex;gap:15px;justify-content:space-between;align-items:center;}
.tm-analysis-heading strong{color:#08717a;}
.tm-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;}
.tm-metrics{overflow-wrap:anywhere;}
.tm-metrics>div{background:#f4f9fa;border:1px solid #e4edef;border-radius:10px;padding:10px 12px;}
.tm-metrics span{display:block;font-size:.76rem;color:#5d7683;}
.tm-metrics strong{display:block;color:#0d6571;font-size:1rem;margin-top:2px;}
.tm-small{font-size:.76rem;color:#607984;}
.tm-source-explanation{padding:4px 3px;}
.tm-source-table-wrap{overflow-x:auto;margin:15px 0;}
.tm-source-table{border-collapse:collapse;width:100%;font-size:.8rem;}
.tm-source-table caption{text-align:left;font-weight:750;color:#244c64;margin-bottom:9px;}
.tm-source-table td,.tm-source-table th{text-align:left;padding:10px 12px;border-bottom:1px solid #e0ebed;}
.tm-source-table th{background:#f0f7f8;color:#315f70;}
.tm-source-table td:first-child{font-weight:700;color:#166977;}
.tm-source-table td:last-child{white-space:nowrap;}
.tm-source-links{display:flex;flex-wrap:wrap;gap:12px 22px;}
.tm-source-links a{font-size:.78rem;}
.tm-research{margin-top:24px;border-top:1px solid #e3ecee;padding-top:20px;scroll-margin-top:160px;}
.tm-research-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0;}
.tm-layer{display:block;border:1px solid #dce9eb;border-radius:10px;padding:12px;background:#f4fafb;font-size:.8rem;}
.tm-layer input{accent-color:#09707c;}
.tm-layer small{display:block;color:#6b8490;font-size:.72rem;margin-top:5px;}
.tm-layer-pending{background:#f7f8f8;color:#6c8188;}
.tm-sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;padding:0;overflow:hidden;white-space:nowrap;}
/* Allow the existing site grids to shrink on narrow screens. */
@media(max-width:900px){.hero,.fargo-shell,.grid-2,.grid-3{min-width:0;}.hero>* ,.fargo-shell>* ,.grid-2>* ,.grid-3>*{min-width:0;}#glacier-history{scroll-margin-top:210px;}.tm-landscape-grid{grid-template-columns:minmax(0,1fr) 196px;}.tm-inventory{padding:17px 16px;}.tm-viewport{height:390px;}.tm-timebar{flex-wrap:wrap;gap:14px;}.tm-play{padding:10px 14px;}.tm-timeline{padding:0 12px;gap:10px;}.tm-own-observations{max-width:none;width:100%;justify-content:center;font-size:.75rem;}.tm-feature-grid{grid-template-columns:1fr 1fr;}.tm-ecology-card{grid-column:1/-1;}.tm-ecology-content{grid-template-columns:140px minmax(0,1fr);}.tm-ecology-content img{height:110px;}.tm-preparation{margin-top:6px;}.tm-science-grid{grid-template-columns:1fr;}.tm-research-grid{grid-template-columns:1fr 1fr;}.tm-card-body h3{font-size:1rem;}}
@media(max-width:650px){#glacier-history .tm-shell{width:calc(100% - 24px);}#glacier-history{padding:24px 0 35px;}.tm-heading{margin:0 8px 17px;}.tm-heading :is(h1, h2){font-size:1.9rem;}.tm-heading p{font-size:1rem;}.tm-main-panel{padding:10px 10px 11px;border-radius:16px;}.tm-landscape-grid{grid-template-columns:1fr;gap:10px;}.tm-viewport{height:350px;border-radius:12px;}.tm-map-toolbar{left:6px;right:6px;top:7px;flex-wrap:wrap;gap:5px;}.tm-segment button{font-size:.7rem;padding:7px 9px;}.tm-inventory{display:grid;grid-template-columns:1fr auto;gap:4px 14px;padding:13px 14px;}.tm-inventory h3{grid-column:1;margin:0;font-size:.75rem;}.tm-inventory-year{grid-column:2;grid-row:1/4;font-size:2.1rem;}.tm-inventory>a:not(.tm-source-shortcut){margin-top:0;font-size:.72rem;}.tm-source-period{margin:0;font-size:.65rem;}.tm-short-rule{display:none;}.tm-inventory>p:first-of-type{grid-column:1/-1;font-size:.77rem;margin-top:5px;}.tm-legend{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px 16px;margin:7px 0;}.tm-legend li{font-size:.7rem;}.tm-key{width:23px;height:14px;}.tm-inventory .tm-inventory-scope{grid-column:1/-1;margin:0;font-size:.66rem;}.tm-inventory .tm-inventory-caveat{grid-column:1/-1;font-size:.66rem;}.tm-source-shortcut{grid-column:1/-1;margin-top:4px;font-size:.68rem;}.tm-timebar{gap:13px;margin-top:13px;}.tm-play{width:100%;justify-content:center;font-size:.78rem;}.tm-timeline{flex-direction:column;align-items:stretch;border:0;padding:0 4px;gap:7px;width:100%;flex-basis:100%;}.tm-timeline>label{max-width:none;text-align:center;font-size:.72rem;}.tm-timeline-track{width:100%;}.tm-year-buttons button{font-size:.72rem;}.tm-map-help{font-size:.65rem;line-height:1.45;}.tm-map-bottom{gap:5px;left:6px;right:6px;bottom:6px;}.tm-map-badge{font-size:.62rem;padding:6px;max-width:48%;}.tm-map-credit{font-size:.55rem;padding:5px;max-width:51%;}.tm-camera-controls{top:87px;right:7px;}.tm-feature-grid{grid-template-columns:1fr;gap:12px;margin-top:13px;}.tm-feature-card{padding:17px 15px;border-radius:14px;gap:13px;}.tm-card-icon{width:42px;height:42px;}.tm-card-body h3{font-size:1.03rem;}.tm-card-body p{font-size:.8rem;}.tm-ecology-card{grid-column:auto;}.tm-ecology-content{grid-template-columns:minmax(90px,.8fr) minmax(0,1fr);}.tm-details{margin-top:12px;border-radius:14px;}.tm-details>summary{padding:14px 16px;gap:12px;}.tm-details>summary strong{font-size:.92rem;}.tm-details>summary small{font-size:.64rem;line-height:1.4;}.tm-details-body{padding:0 14px 18px;font-size:.82rem;}.tm-science-card{padding:13px;}.tm-chart-title{flex-direction:column;gap:0;}.tm-metrics{grid-template-columns:1fr 1fr;}.tm-metrics strong{font-size:.88rem;}.tm-metrics>div{padding:9px;}.tm-analysis-heading{flex-direction:column;align-items:flex-start;gap:0;}.tm-source-table td,.tm-source-table th{padding:8px 5px;font-size:.71rem;}.tm-research-grid{grid-template-columns:1fr;}.tm-comparison-banner{align-items:start;font-size:.73rem;}.tm-comparison-banner button{flex-shrink:0;}.tm-coordinate-details{font-size:.7rem;}}
@media(prefers-reduced-motion:reduce){.tm-chevron{transition:none;}}
@media(max-width:650px){.hero h1{font-size:clamp(1.8rem,7.5vw,2.5rem);overflow-wrap:anywhere;hyphens:auto;}.fargo-panel h3{overflow-wrap:anywhere;hyphens:auto;}}
