* { box-sizing: border-box; }
:root {
  font: 100%/1.4 system-ui, sans-serif;
  background: #e9edf0;
  color: #202934;
  --paper: #f8f9fa;
  --muted: #4a5865;
  --navy: #294b62;
  --accent-rule: #a4b7c0;
  --rule: #d8dce0;
  --pad: clamp(.875rem, 4.5vw, 1.125rem);
}
body, h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--navy); text-underline-offset: .13em; }
:focus-visible { outline: 3px solid #176a8d; outline-offset: 3px; }
.phone-page { max-width: 32rem; margin-inline: auto; min-height: 100dvh; background: var(--paper); }
.inset { padding-inline: var(--pad); }
.ad-area { min-height: 4.5rem; display: grid; place-items: center; padding: .375rem .5rem .75rem; background: #fff; }
.ad-area span {
  width: min(320px, 100%); min-height: 50px; display: grid; place-items: center;
  border: 1px dashed #b4bbc3; border-radius: .3rem; background: #f3f4f6; color: var(--muted); font-size: .875rem;
}
.season-banner {
  --banner-height: 3.625rem;
  --portrait-width: 5.2rem;
  position: relative; display: flex; align-items: center; gap: .4rem; isolation: isolate;
  min-height: var(--banner-height); margin-block: .625rem; padding: .375rem .45rem .375rem calc(var(--portrait-width) + .6rem);
  color: #fff; background: #315978;
}
.season-banner img {
  position: absolute; left: 0; top: 50%; width: var(--portrait-width); height: auto;
  transform: translateY(-50%); mask-image: linear-gradient(90deg, black 78%, transparent);
}
.brand strong, .divider h2 { font-size: 1.08rem; font-weight: 600; line-height: 1.16; }
.menu-button {
  flex: 0 0 44px; display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
  color: inherit; border: 0; border-radius: .3rem; background: transparent;
}
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 2px; border-radius: 1rem; background: currentColor; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { position: absolute; content: ""; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.site-menu { display: grid; }
.site-menu a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); }
.special-headlines { padding-block: .25rem 0; color: #000; }
.special-headlines h2 { font-size: .875rem; line-height: 1.2; }
.special-headlines ul { margin: 0; padding-inline-start: .875rem; font-size: .625rem; overflow-wrap: anywhere; }
.special-headlines a {
  display: flex; align-items: center; min-height: 1.5rem; padding-block: .125rem;
  color: #000; font-weight: 600; line-height: 1.25;
}
.special-headlines li p { margin-block: .1rem .35rem; }
.conditions { padding-top: .4rem; }
.location-form { display: grid; grid-template-columns: minmax(7rem, 1fr) auto auto; align-items: center; gap: .5rem; }
.location-form input { width: 100%; min-height: 44px; padding: .5rem .65rem; border: 1px solid #929faa; border-radius: .4rem; background: #fff; }
.location-form button, dialog button { min-height: 44px; padding: .45rem .8rem; color: white; background: #2e3943; border: 0; border-radius: .4rem; font-weight: 700; }
.location-form p, .coordinates, .observation-time, .readings small, .forecast-heading p, .service-location, .message { font-size: .875rem; color: var(--muted); }
.message { margin-top: .35rem; }
.weather-alert {
  margin-top: .85rem; overflow: hidden; border: 1px solid #e5b3ba; border-radius: .5rem;
  color: #841822; background: #fff;
}
.weather-alert h2 { padding: .55rem .7rem; background: #f8dfe2; font-size: 1.125rem; line-height: 1.25; }
.alert-note { padding: .5rem .7rem 0; color: var(--muted); font-size: .875rem; }
.weather-alert ul { margin: 0; padding: .45rem .7rem .65rem; list-style: none; }
.weather-alert li + li { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid #f0d5d9; }
.weather-alert li span { display: block; color: #5c3136; font-size: .875rem; }
.current-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .45rem; margin-block: .75rem .5rem; }
h1 { font-size: clamp(1.25rem, 5.8vw, 1.625rem); line-height: 1.18; }
.station { font-weight: 700; font-size: .9rem; margin-top: .2rem; }
.temperature { display: grid; flex: none; justify-items: end; line-height: 1.1; }
.temperature strong { font-size: clamp(2.25rem, 10.5vw, 3.3rem); letter-spacing: -.035em; }
.temperature span { margin-top: .16rem; color: var(--muted); }
.readings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: .875rem; line-height: 1.25; }
.readings > div {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .3rem; justify-content: space-between;
  padding-block: .25rem; min-height: 1.5rem; border-top: 1px solid var(--rule);
}
.readings > div:not(.wide):nth-child(odd) { padding-right: .45rem; border-right: 1px solid var(--rule); }
.readings > div:nth-child(even) { padding-left: .45rem; }
.readings dt { color: var(--muted); }
.readings dd { margin-left: auto; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.readings small { display: block; font-size: .75rem; font-weight: 400; }
.readings .wide { grid-column: 1 / -1; }
.condition-links { display: flex; gap: .85rem; flex-wrap: wrap; border-top: 1px solid var(--rule); font-size: .875rem; }
.condition-links a { display: flex; align-items: center; min-height: 36px; font-weight: 700; }
.preview-note { color: var(--muted); font-size: .78rem; margin-block: .4rem .65rem; }
.weather-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; padding-top: .15rem; }
.install-rocky-button {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .65rem;
  border: 1px solid var(--navy); border-radius: .5rem; color: var(--navy); background: #fff;
  font-size: .875rem; font-weight: 700;
}
.install-rocky-button img { border-radius: .2rem; }
.install-rocky-button:hover { background: #eaf1f5; }
.snow-report-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .85rem;
  border-radius: .5rem; color: white; background: #2d679a; text-decoration: none;
  font-family: "Snow Caps", SnowCaps, system-ui, sans-serif; font-weight: 750;
}
.snow-report-link:hover { background: #245780; }
.snow-report-link span { font: 1.2rem/1 system-ui, sans-serif; }
.community-nav { margin-block: .8rem 1rem; }
.community-nav h2 { font-size: 1.125rem; line-height: 1.25; }
.community-links {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: .85rem; margin: .25rem 0 0; padding: 0; list-style: none;
}
.community-links::before {
  position: absolute; content: ""; inset-block: .3rem; inset-inline-start: 50%;
  border-inline-start: 1px solid var(--rule); pointer-events: none;
}
.community-links a { display: flex; align-items: center; min-height: 44px; padding-block: .25rem; font-size: .875rem; line-height: 1.25; }
.community-name-part { display: inline-block; }
@media (max-width: 19rem) {
  .community-links { grid-template-columns: 1fr; }
  .community-links::before { display: none; }
}
.divider { margin-block: .9rem 1rem; }
.forecast-heading, .period-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.forecast-heading h3, .detail-heading { font-size: 1.125rem; }
.copy-bar { display: flex; align-items: center; gap: .45rem; margin-block: .65rem; }
.copy-button, .copy-help, .extended-link, .return-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .65rem;
  background: #fff; border: 1px solid #aab7bf; border-radius: .5rem; font-weight: 700;
}
.copy-button { color: #304e60; gap: .45rem; }
.copy-icon { display: inline-block; position: relative; width: 13px; height: 15px; margin-left: 3px; border: 1.5px solid currentColor; border-radius: 2px; }
.copy-icon::before { position: absolute; content: ""; left: -5px; top: -5px; width: 10px; height: 12px; border: 1.5px solid currentColor; border-width: 1.5px 0 0 1.5px; border-radius: 2px; }
.help-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: #426073; border: none; }
.help-button span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 1px solid currentColor; background: white; font-weight: 700; line-height: 1; }
.help-button[aria-expanded="true"] span { background: #426073; color: white; }
.copy-help { border: 1px solid #93a0ab; border-radius: .5rem; color: var(--navy); background: white; }
.help-text { margin-block: .1rem .55rem; padding: .55rem .65rem; border-left: 2px solid var(--accent-rule); background: #f1f5f6; color: #3e3026; }
.forecast-cards {
  display: flex; gap: .55rem; overflow-x: auto; padding-block: .12rem .6rem;
  scroll-snap-type: x mandatory; scrollbar-color: #8299a5 #e2e4e6; scrollbar-width: thin;
}
.forecast-card {
  flex: 0 0 clamp(7.65rem, 34%, 9rem); padding: .4rem .45rem .5rem;
  background: #fff; border: 1px solid var(--rule); border-radius: .55rem; text-align: center; scroll-snap-align: start;
}
.forecast-card h4 { margin: 0 0 .25rem; font-size: .9rem; }
.forecast-card img { display: block; width: 100%; height: auto; border-radius: .36rem; margin-bottom: .3rem; }
.forecast-card strong { color: #863b17; font-size: .9rem; }
.forecast-card.night strong { color: #324c69; }
.forecast-card p { font-size: .875rem; color: var(--muted); }
.detail-heading { margin-block: .7rem .4rem; }
.period { padding: .7rem .9rem; background: white; font-size: .875rem; }
.period + .period { margin-top: .25rem; }
.period.night { background: #f0f5f6; }
.period-heading strong { font-weight: 550; }
.period-heading strong:last-child { font-size: inherit; white-space: nowrap; }
.period p { margin-top: .22rem; line-height: 1.5; }
.outlook-heading { display: flex; justify-content: space-between; gap: .5rem; margin-block: .7rem .3rem; color: var(--muted); font-size: .875rem; }
.bottom-copy { margin-block: .8rem; }
.extended-link { display: flex; text-decoration: none; border-color: #aab3bd; color: #202934; }
#services { margin-top: 1.1rem; padding-bottom: 1.15rem; }
#services h2 { border-top: 2px solid var(--accent-rule); padding-top: .8rem; font-size: 1.125rem; }
.service-group { padding-block: .25rem; }
.service-group + .service-group { border-top: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; column-gap: .35rem; }
.service-row a { display: flex; align-items: center; min-height: 44px; padding-block: .35rem; font-size: .875rem; }
.service-row .help-text { grid-column: 1 / -1; }
footer { padding-block: .65rem 1rem; text-align: center; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--rule); }
.service-screen { padding-block: 1.15rem 2rem; }
.return-link { margin-bottom: 1rem; color: var(--navy); border-color: #aab3bd; text-decoration: none; }
.service-location { margin-block: .15rem .75rem; }
.service-detail { margin-block: .75rem; }
.rain-chart { margin-block: 1rem; }
.rain-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .2rem .5rem; margin-bottom: .65rem; }
.rain-track { grid-column: 1 / -1; height: .55rem; border-radius: .5rem; background: #e2e9ee; overflow: hidden; }
.rain-track span { display: block; height: 100%; background: #326585; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--rule); padding: .5rem .35rem; }
.text-forecast { font: inherit; white-space: pre-wrap; background: white; padding: .75rem; border: 1px solid var(--rule); }
.toast {
  position: fixed; z-index: 3; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: max-content; max-width: 90vw; padding: .55rem .9rem; border-radius: .5rem; color: white; background: #253744;
}
dialog { width: min(90vw, 27rem); border: 1px solid var(--rule); border-radius: .55rem; color: inherit; }
dialog::backdrop { background: #19232b88; }
dialog textarea { display: block; width: 100%; margin-block: .65rem; }
#install-rocky-steps { padding-inline-start: 1.35rem; }
#install-rocky-steps li + li { margin-top: .4rem; }
#install-rocky-layout { margin-bottom: .8rem; color: var(--muted); font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 355px) {
  .location-form p { grid-column: 1 / -1; }
  .location-form p br { display: none; }
  .readings { font-size: .9rem; }
  .condition-links { gap: .65rem; }
}
@media print {
  .return-link, .toast, .service-location + .preview-note { display: none; }
  .phone-page { max-width: none; }
}

.traffic-prompt { padding: .5rem 0; font-weight: 700; }
.traffic-map { display: block; width: 100%; height: clamp(22rem, 65vh, 32.5rem); margin: .75rem 0; border: 0; }

.utilities { margin-top: 1rem; }
.utilities a { display: inline-flex; align-items: center; min-height: 44px; }

.discussion-report { line-height: 1.5; overflow-wrap: anywhere; }
.discussion-report ul { list-style: none; padding-left: 1.2em; }
.discussion-report li { text-indent: -1em; margin-block: .5em; }

.discussion-report > * + * { margin-block-start: 1em; }

#service-content { font-size: .92rem; line-height: 1.45; }
#service-content th, #service-content td { font-size: inherit; padding: .38em .45em; }
#service-content .table-wrap td:first-child { white-space: nowrap; }
#service-content .table-wrap { margin-block: .6em; }
#service-content .satellite-image { width: 100%; height: auto; }
#service-content h2 { margin-block-start: .75em; }
@media print {
  #service-content .copy-button, #service-content .service-detail { display: none; }
  #service-content .text-forecast { border: 0; padding: 0; }
}

@media (max-width: 32rem) {
  #service-content .hourly-table { font-size: .8125rem; }
  #service-content .hourly-table { container: hourly / inline-size; }
  #service-content .hourly-table :is(td, th) { padding: .4em .26em; line-height: 1.3; vertical-align: top; }
  .hourly-table td:last-child { overflow-wrap: anywhere; }

}
.hourly-day { background: #eef1f3; }

/* Share column tracks when enlarged text leaves too little room for conditions. */
@container hourly (max-width: 24em) {
  .hourly-table :is(table, thead, tbody) { display: block; }
  .hourly-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr; }
  .hourly-table thead th:last-child { display: none; }
  .hourly-table :is(.hourly-day, td:last-child) { grid-column: 1 / -1; }
  .hourly-table td:not(:last-child) { border-bottom: 0; }
  .hourly-table td:last-child { color: var(--muted); }
}
@container hourly (max-width: 16em) {
  .hourly-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hourly-table tr { grid-template-columns: 1fr 1fr; }
  .hourly-table td:nth-child(3)::before { content: 'Precip. '; }
  .hourly-table td:nth-child(4)::before { content: 'Wind '; }
}

.hourly-clock {
  position: relative;
  box-sizing: border-box;
  flex: none;
  width: 1em;
  height: 1em;
  margin-inline-end: .35em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.hourly-clock::before {
  content: "";
  position: absolute;
  bottom: 46%;
  left: 44%;
  width: 27%;
  height: 34%;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
@media (max-width: 32rem) {
  #service-content .tabular-forecast { font-size: .8125rem; }
  .tabular-forecast table { table-layout: fixed; }
  #service-content .tabular-forecast :is(th, td) {
    padding: .42em .28em;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
  .tabular-forecast th:first-child { width: 32%; }
  .tabular-forecast th:nth-child(2) { width: 23%; }
}
@media (max-width: 32rem) {
  #service-content .tabular-forecast td:first-child { white-space: normal; }
}

@media (max-width: 32rem) {
  .aqi-table table { table-layout: fixed; }
  #service-content .aqi-table :is(th, td) {
    padding-inline: .2em;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
  #service-content .aqi-table td:first-child { white-space: normal; }
  .aqi-table th:nth-child(1) { width: 21%; }
  .aqi-table th:nth-child(2) { width: 14%; }
  .aqi-table th:nth-child(3) { width: calc(30% + 8px); }
}

@media screen and (max-width: 32rem) {
  .period-weather-table :is(table, tbody) { display: block; }
  .period-weather-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .period-weather-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    padding: .55em 0;
    border-bottom: 1px solid var(--rule);
  }
  #service-content .period-weather-table td {
    min-width: 0; border: 0; padding: .18em .25em;
    overflow-wrap: anywhere; white-space: normal;
  }
  #service-content .period-weather-table td:first-child {
    grid-column: 1 / -1; font-weight: 700; white-space: normal;
  }
  .period-weather-table td:last-child { grid-column: 1 / -1; }
  .period-weather-table td::before { display: block; font-size: .85em; color: var(--muted); }
  .period-weather-table td:nth-child(2)::before { content: 'Temp.'; }
  .period-weather-table td:nth-child(3)::before { content: 'Precip.'; }
  .period-weather-table td:nth-child(4)::before { content: 'Wind'; }
}

.road-choices { min-inline-size: 0; margin: 1rem 0; padding: .25rem .75rem; }
.road-choices label { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; margin-inline-end: .75em; cursor: pointer; }
.road-choices input { width: 1em; height: 1em; flex: none; }

#service-content .history-table { container: observations / inline-size; }
@media (max-width: 38rem) {
  #service-content .history-table { font-size: .875rem; }
}
@container observations (max-width: 34em) {
  .history-table :is(table, thead, tbody) { display: block; }
  .history-table tr { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr)); border-bottom: 1px solid #ddd; }
  #service-content .history-table :is(td, th) { padding: .25em; border: 0; overflow-wrap: anywhere; }
  #service-content .history-table td:first-child { white-space: normal; }
  .history-table .hourly-day, .history-table td:last-child { grid-column: 1 / -1; }
  .history-table thead th:last-child { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .history-table .empty-condition { display: none; }
}

#resort-report {
  box-sizing: border-box; position: fixed; inset: auto; margin: 0;
  left: var(--snow-center-x, 50%); top: var(--snow-center-y, 50%);
  transform: translate(-50%, -50%);
  width: min(calc(var(--snow-view-width, 100vw) - 1.5rem), 28rem);
  max-width: calc(100vw - 1.5rem); min-width: 0;
  max-height: min(85vh, calc(var(--snow-view-height, 100vh) - 1.5rem));
  max-height: min(85dvh, calc(var(--snow-view-height, 100dvh) - 1.5rem));
  padding: .7rem .9rem; overflow: auto; overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
#resort-report header {
  position: sticky; top: -.7rem; z-index: 1; background: white;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: -.7rem; padding-block: .7rem .4rem;
}
#resort-report h2 { min-width: 0; font-size: 1rem; font-weight: 600; margin: 0; }
#resort-report button { flex: none; font-size: .875rem; font-weight: 500; }
#snow-readings section { border-top: 1px solid var(--rule); padding: .42rem 0; }
#snow-readings :is(h3,p) { margin: 0; font-size: .875rem; line-height: 1.35; }
#snow-readings h3 { font-weight: 600; }


#hourly-glance { margin: .7rem 0; padding: .55rem 0; min-width: 0; overflow: hidden; color: #223c4d; border: 1px solid #d6e2e8; border-radius: .65rem; background: #fff; }
#hourly-glance h2 { font-size: .875rem; font-weight: 550; margin: 0 .75rem .4rem; }
#hourly-track { display: flex; overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.glance-hour { flex: 0 0 4.5em; display: grid; gap: .12em; justify-items: center; padding-block: .35rem; white-space: nowrap; font-size: .8125rem; }
.glance-hour.night { background: linear-gradient(#dcecf6, #f8fbfe); }
.glance-hour strong { font-size: .875rem; font-weight: 500; }
.glance-chance { color: #266381; }
.glance-icon { font-size: 1.45em; line-height: 1.35; }
#live-alerts summary { cursor: pointer; font-weight: bold; padding: .4em 0; }
#live-alerts details p { white-space: pre-line; }

#location-form { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; }
#location-form input { min-width: 0; }
#location-form button { font-size: .8125rem; font-weight: 500; padding-inline: .55em; min-width: 44px; }
#location-message { font-size: .875rem; line-height: 1.35; margin-block: .25rem; }
