/* The atlas and My Ski Day share the masthead and its page margins.
   The atlas renderer measures only #home-screen. */
.atlas-page, .atlas-home-label, .atlas-day-icon { display:none; }

body:is(.home-mode,.ski-day-library) {
  --atlas-page-paper:#fff2ce;
  --atlas-ink:#163a42;
  --atlas-muted:#425453;
  --atlas-rust:#9f3925;
  --atlas-rule:#b69563;
  --atlas-brass:#e4b85d;
  --atlas-gutter:clamp(14px,3vw,46px);
  --atlas-header-height:58px;
  --atlas-banner-height:clamp(116px,15svh,142px);
  --atlas-sheet-height:38px;
  --atlas-tools-height:45px;
  --atlas-inner:min(calc(100% - 2 * var(--atlas-gutter)),1480px);
}
body.home-mode {
  color:var(--atlas-ink);
  background:radial-gradient(#8a734b30 .55px,transparent .82px) 0 0 / 5px 5px,#f7ecd2;
}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header {
  --header-height:var(--atlas-header-height);
  position:relative;
  padding-inline:max(var(--atlas-gutter), calc((100% - var(--atlas-inner)) / 2));
}
:is(.home-mode,.ski-day-library) .header .explorer-home-label {display:none;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand {gap:10px;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand .snowslate-wordmark {font-size:34px;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand .powder-brand-mark {width:31px;height:31px;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header nav {margin-left:auto;gap:clamp(18px,3vw,42px);}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .header-right,
html[data-overview-style] :is(.home-mode,.ski-day-library) .header #explore-nav {display:none;}
html[data-overview-style] .home-mode .header .header-right {display:flex;margin-left:0;min-width:0;}
html[data-overview-style] .home-mode .header .header-right :is(.home-header-search,#passage-switch) {display:none;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .nav-item {
  display:inline-flex;align-items:center;gap:7px;padding:0;color:#fff4d9;
  font:650 14px/1 var(--font-sign);text-transform:none;letter-spacing:.015em;text-decoration:none;
}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .nav-item.active::after {
  bottom:0;height:5px;background:#edc36f;clip-path:polygon(0 100%,0 65%,43% 65%,50% 0,57% 65%,100% 65%,100% 100%);
}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header .nav-item:hover {color:#f6c774;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header :is(.atlas-home-label,.atlas-day-icon) {display:inline-flex;}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header #saved-count {
  border:1px solid #b49757;background:transparent;color:#f5d17c;border-radius:2px;
}
:is(.home-mode,.ski-day-library) :is(.atlas-page,.header) :is(button,a,input,select,summary):focus-visible {
  outline:2px solid #26636c;outline-offset:3px;
}
html[data-overview-style] :is(.home-mode,.ski-day-library) .header :is(a,button):focus-visible {outline-color:#f3c66c;}
.home-mode .atlas-page {display:flow-root;font-family:var(--font-sign);}
.atlas-page [hidden] {display:none !important;}
.atlas-page-inner {
  position:relative;container-type:inline-size;
  width:var(--atlas-inner);
  margin:0 auto clamp(26px,5vw,64px);
}
.atlas-intro {
  position:relative;z-index:2;
  display:flex;align-items:center;justify-content:space-between;
  gap:clamp(20px,3vw,56px);min-height:var(--atlas-banner-height);
  padding:15px 0 18px;
}
.atlas-heading {min-width:0;}
.atlas-heading h1 {
  margin:0;color:#193447;font:790 clamp(2.3rem,4.8cqw,4.75rem)/.98 var(--font-display);
  letter-spacing:-.065em;
}
.atlas-heading h1 > span {white-space:nowrap;}
.atlas-heading h1 em {font-weight:690;color:#8b392a;}
.atlas-heading p {
  display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 13px;
  margin-top:7px;color:var(--atlas-muted);font:550 1rem/1.35 var(--font-sign);
}
.atlas-heading p a {
  color:#793b2c;font-weight:700;text-decoration-thickness:1px;text-underline-offset:3px;
}
#atlas-state-list {
  display:block;margin-top:4px;padding:4px 0;color:var(--atlas-rust);font:650 .875rem/1.25 var(--font-sign);
  text-decoration:underline;text-underline-offset:3px;
}
.atlas-intro .home-copy {
  position:relative;display:flex;align-items:stretch;gap:0;width:clamp(286px,39%,520px);flex:none;
  color:var(--atlas-ink);text-align:left;border:1.5px solid #29414a;
  background:#fff5d9;box-shadow:3px 3px 0 #77573180;
}
.atlas-search-field,.atlas-state-field {
  display:flex;position:relative;align-items:center;height:48px;min-width:0;
  border:0;border-radius:0;background:#fff8e4;
}
.atlas-search-field {flex:1 1 auto;gap:8px;padding-inline:12px 9px;}
.atlas-search-field > span {display:flex;flex:none;}
.atlas-search-field .icon {width:19px;height:19px;}
.atlas-search-field input,.atlas-state-field select {
  width:100%; min-width:0; height:100%; margin:0; border:0; background:transparent;
  color:var(--atlas-ink); font:620 1rem/1.2 var(--font-sign);
}
.atlas-search-field input {padding:0; appearance:none;}
.atlas-search-field input::placeholder {color:#52635d; opacity:1;}
.atlas-search-field input:placeholder-shown::-webkit-search-cancel-button {display:none;}
.atlas-search-field kbd {
  display:grid; place-items:center; min-width:18px; height:21px; border:1px solid #dce0d4;
  border-radius:3px; color:#68766d; font:12px/1 var(--font-data);
}
.atlas-search-field:focus-within kbd,.atlas-search-field:has(input:not(:placeholder-shown)) kbd {display:none;}
.atlas-state-field {flex:0 0 clamp(116px,12vw,148px);border-left:1px solid #ab946e;background:#efdeb9;}
.atlas-state-field select {appearance:none; cursor:pointer; padding:0 27px 0 12px; text-overflow:ellipsis;font-size:.875rem;}
.atlas-state-field::after {
  content:""; position:absolute; pointer-events:none; right:13px; top:calc(50% - 4px);
  width:7px; height:7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg);
}
.atlas-intro :is(.atlas-search-field,.atlas-state-field):focus-within {outline:2px solid #296f76; outline-offset:2px;}
.atlas-intro :is(.atlas-search-field input,.atlas-state-field select):focus-visible {outline:none;}
.atlas-result-panel {
  position:absolute; top:calc(100% + 8px); right:0; z-index:5; width:100%; min-width:min(310px,100%);
  border:1px solid #897344;border-radius:1px;background:#fffae8;
  box-shadow:0 8px 28px #193b3d29; overflow:hidden;
}
.atlas-result-heading {display:flex; align-items:center; justify-content:space-between; padding:2px 4px 2px 14px; border-bottom:1px solid var(--atlas-rule);}
.atlas-result-heading > span {font:500 11px/1.4 var(--font-data); color:var(--atlas-muted);}
.atlas-result-heading button {display:grid;place-items:center; padding:0; width:38px;height:38px; border-radius:4px;}
.atlas-result-heading button .icon {width:16px;height:16px;}
.atlas-result-panel .home-search-results {max-height:min(36svh,300px);overflow-y:auto;overscroll-behavior:contain;}
.atlas-result-panel a {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 15px;color:var(--atlas-ink);text-decoration:none;}
.atlas-result-panel a + a {border-top:1px solid #e7e8df;}
.atlas-result-panel :is(button,a):is(:hover,:focus-visible) {background:#eef1e7;outline-offset:-3px;}
.atlas-result-panel a span {display:grid;gap:2px;}
.atlas-result-panel strong {font:650 16px/1.2 var(--font-display);}
.atlas-result-panel small {font:500 12px/1.4 var(--font-sign);color:var(--atlas-muted);}
.atlas-result-panel a i {font-style:normal;color:var(--atlas-rust);}
#home-empty {margin:0; padding:17px 14px; font-size:14px;}

.atlas-map-frame {
  position:relative;min-width:0;overflow:clip;border:1px solid #476068;border-radius:0;
  background:var(--atlas-page-paper);
}
.atlas-map-frame #home-screen {
  display:block;height:auto;min-height:0;aspect-ratio:3200/1445;
  background:#dce7df; border:0; box-shadow:none;
}
.atlas-map-frame #home-screen:focus-visible {outline:3px solid #296f76; outline-offset:-3px;}
#home-screen[data-atlas-national] #home-landscape::before,
#home-screen[data-atlas-national] #home-landscape::after {content:none;}
.atlas-map-toolbar {
  position:relative;display:flex;align-items:center;min-height:var(--atlas-tools-height);
  padding:0 5px 0 15px;gap:16px;
  border-top:1px solid #826943;background:#f7e9c9;color:var(--atlas-ink);
}
.atlas-map-frame:has(#home-screen[data-atlas-national=true]) .atlas-sheet-title {display:none;}
.atlas-map-note,.atlas-map-note > span,.atlas-map-controls,.atlas-zoom {display:flex;align-items:center;}
.atlas-map-note {gap:14px; font:550 12px/1.25 var(--font-sign);}
.atlas-map-note > span {gap:6px;}
.atlas-map-frame:not(:has(.atlas-cluster:not([hidden]))) .atlas-group-legend {display:none;}
.atlas-group-key,.atlas-single-key {display:inline-grid;place-items:center;flex:none;}
.atlas-single-key {width:14px;}
.atlas-group-key {
  width:22px;height:23px;padding-top:1px;
  color:#fff5d8;background:var(--atlas-gondola-symbol) center/contain no-repeat;
  font:750 10px/1 var(--font-sign);
}
.atlas-map-controls {margin-left:auto;gap:4px;border-left:1px solid var(--atlas-rule);padding-left:10px;}
.atlas-map-controls button {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:42px;height:44px;
  padding:0 8px;border-radius:4px;color:var(--atlas-ink);font:600 12px/1 var(--font-sign);
}
.atlas-map-controls .icon {width:17px;height:17px;}
.atlas-map-controls :is(button:hover:not(:disabled),button:focus-visible) {background:#e2e8dc;outline-offset:-3px;}
.atlas-map-controls button:disabled {color:#8c9b90;}
.atlas-zoom button {padding:0;}
.atlas-zoom {border-left:1px solid var(--atlas-rule);}
.atlas-paper-spread {min-width:0;}
.atlas-snow-feature {
  display:grid;
  grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr);
  gap:clamp(24px,5vw,78px);
  align-items:center;
  margin-top:clamp(27px,4vw,64px);
  padding:clamp(24px,4vw,62px);
  border:1px solid #142f43;
  background:
    repeating-linear-gradient(155deg,#ffffff09 0 1px,transparent 1px 7px),
    radial-gradient(ellipse at 77% 10%,#2b4f64,#183348 67%);
  color:#fff3d7;
  box-shadow:0 3px 0 #b8a17c;
}
.atlas-snow-copy h2 {
  color:#fff3d7;
  font:780 clamp(2.2rem,4.6vw,4.7rem)/.99 var(--font-display);
  letter-spacing:-.061em;
  text-wrap:balance;
}
.atlas-snow-copy h2 em {color:#f3c972;font-weight:650;}
.atlas-snow-copy p {
  max-width:39ch;
  margin:clamp(12px,1.5vw,20px) 0;
  color:#f6ead0;
  font:520 clamp(1rem,1.35vw,1.2rem)/1.52 var(--font-sign);
}
#atlas-snow-example {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  max-width:100%;
  padding:8px 12px;
  border:1px solid #f9df9c;
  border-radius:2px;
  background:#e9bc64;
  color:#173247;
  font:760 .935rem/1.22 var(--font-sign);
  text-decoration:none;
}
#atlas-snow-example:hover {background:#f3cb80;}
#atlas-snow-example:focus-visible {outline-color:#ffe4ab;}
.atlas-snow-plate {
  min-width:0;
  width:100%;
  max-width:690px;
  margin:0 auto;
  padding:clamp(6px,1vw,12px);
  border:1px solid #e4d4a9;
  background:#fff3d7;
  color:#1e3a49;
  box-shadow:5px 8px 0 #1027399c;
  transform:rotate(-1.25deg);
}
.atlas-snow-picture {position:relative;aspect-ratio:8/5;background:#32536b;}
.atlas-snow-picture img {display:block;width:100%;height:100%;object-fit:cover;}
.atlas-snow-plate figcaption {
  padding:8px 2px 1px;
  font:670 .8125rem/1.26 var(--font-sign);
}
.atlas-snow-callout {
  position:absolute;
  display:grid;
  min-width:max-content;
  gap:2px;
  padding:5px 9px;
  border:1px solid #173447;
  background:#fff3d7;
  box-shadow:2px 3px 0 #112e45a0;
  text-align:center;
}
.atlas-snow-upper {top:36%;left:24%;border-color:#b9dbed;background:#1b425d;color:#fff7e8;}
.atlas-snow-lower {top:53%;right:16%;}
.atlas-snow-callout small {font:690 .75rem/1.1 var(--font-sign);}
.atlas-snow-callout strong {font:810 clamp(1.2rem,2.6vw,2.4rem)/.98 var(--font-display);}
@media (min-width:1000px){
  body:is(.home-mode,.ski-day-library) {
    --atlas-desktop-map-room:calc(100svh - var(--atlas-header-height) - var(--atlas-banner-height) - var(--atlas-tools-height) - 8px);
    --atlas-inner:min(calc(100% - 2 * var(--atlas-gutter)),clamp(930px,calc(var(--atlas-desktop-map-room) * 3200 / 1445 + 2px),1480px));
  }
}
@media (max-height:520px){
  body:is(.home-mode,.ski-day-library) {
    --atlas-header-height:50px;
    --atlas-banner-height:86px;
    --atlas-sheet-height:34px;
  }
  .atlas-heading h1 {font-size:clamp(2rem,4.5vw,3.8rem);}
}
@media (max-width:700px){
  body:is(.home-mode,.ski-day-library) {
    --atlas-gutter:13px;
    --atlas-header-height:52px;
    --atlas-banner-height:0px;
    --atlas-sheet-height:35px;
  }
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header {gap:10px;padding-inline:14px;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand {gap:6px;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand .snowslate-wordmark {font-size:clamp(21px,5.6vw,26px);}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header .brand .powder-brand-mark {width:24px;height:24px;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header nav {gap:14px;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header :is(#home-nav,.atlas-day-icon,#saved-count) {display:none;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header .nav-item {font-size:13px;}
  html[data-overview-style] .home-mode .header #about-button {min-height:44px;font-size:.8125rem;}
  .atlas-intro {flex-direction:column;align-items:stretch;gap:13px;padding:17px 0 16px;}
  .atlas-heading h1 {font-size:clamp(2.05rem,8.5vw,3.55rem);}
  .atlas-heading p {margin-top:4px;}
  .atlas-heading p a {font-size:.875rem;}
  .atlas-intro .home-copy {width:100%;min-width:0;}
  .atlas-state-field select {font-size:1rem;}
  .atlas-search-field kbd {display:none;}
  .atlas-state-field {flex-basis:120px;}
  .atlas-map-frame #home-screen {min-height:155px;}
  .atlas-map-frame #home-screen:not([data-state=all]) {height:clamp(270px,38svh,360px);}
  .atlas-map-toolbar {padding:0 2px 0 9px;gap:4px;}
  .atlas-map-note {gap:9px;font-size:.75rem;}
  .atlas-map-note > span {gap:4px;}
  .atlas-map-controls {gap:0;padding:0;border:0;}
  .atlas-map-controls button {min-width:44px;padding:0;}
  #atlas-reset > span:last-child {display:none;}
  .atlas-snow-feature {grid-template-columns:1fr;gap:19px;padding:21px 17px;}
  .atlas-snow-copy h2 {font-size:clamp(2rem,8.25vw,3.5rem);text-wrap:initial;}
  .atlas-snow-copy p {margin:9px 0 13px;}
  .atlas-snow-plate {transform:none;}
  .atlas-snow-upper {left:20%;}
  .atlas-snow-lower {right:12%;}
}
@media (max-width:420px) {
  .atlas-key-action {display:none;}
}
@media (max-width:359px){
  html[data-overview-style] .home-mode .header {gap:6px;padding-inline:10px;}
  html[data-overview-style] :is(.home-mode,.ski-day-library) .header nav {gap:10px;}
  .atlas-state-field {flex-basis:102px;}
  .atlas-state-field select {padding-inline:9px 20px;}
  .atlas-state-field::after {right:9px;}
  .atlas-map-note {gap:5px;}
  .atlas-map-note > span {gap:3px;}
  .atlas-single-key {width:12px;}
  .atlas-group-key {width:18px;height:20px;}
  .atlas-map-toolbar {column-gap:2px;padding-inline:5px 0;}
}
@media (pointer:coarse) {
  .atlas-map-frame #home-screen[data-atlas-national=true] {touch-action:pan-y;}
}
