body {
    color: #222;
}
@media (prefers-color-scheme: dark) {
    body {
        color: #fff;
    }
}
.snowflake {
    color: rgba(255,255,255,0.5);
    font-size: 0.65em;
    font-family: Arial, sans-serif;
}
.snowflake,
.snowflake .inner {
    animation-iteration-count:infinite;
    animation-play-state:running;
}
.rotate {
    animation: rotation 2s infinite linear;
}
@keyframes snowflakes-fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(110vh);
    }
}
@keyframes snowflakes-shake {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(80px);
    }
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}
.snowflake {
    position: fixed;
    pointer-events: none;
    top: -10%;
    z-index: -1; /* behind the cards, text and map, so they never cover anything */
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-shake;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
}
.snowflake .inner {
    animation-duration: 10s;
    animation-name: snowflakes-fall;
    animation-timing-function: linear;
}
.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s; }
.snowflake:first-of-type { left: 10%; animation-delay: 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 0.5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 1.5s; }
.snowflake:nth-of-type(10) { left: 25%; animation-delay: 0s; }
.snowflake:nth-of-type(11) { left: 65%; animation-delay: 2.5s; }
.snowflake:nth-of-type(12) { left: 65%; animation-delay: 2.5s; }
.snowflake:nth-of-type(13) { left: 5%; animation-delay: 1.3s; }
.snowflake:nth-of-type(14) { left: 15%; animation-delay: 3.6s; }
.snowflake:nth-of-type(15) { left: 35%; animation-delay: 0.9s; }
.snowflake:nth-of-type(16) { left: 45%; animation-delay: 2.1s; }
.snowflake:nth-of-type(17) { left: 55%; animation-delay: 3.1s; }
.snowflake:nth-of-type(18) { left: 67%; animation-delay: 0.4s; }
.snowflake:nth-of-type(19) { left: 75%; animation-delay: 2.7s; }
.snowflake:nth-of-type(20) { left: 85%; animation-delay: 0.5s; }
.snowflake:nth-of-type(21) { left: 95%; animation-delay: 3.2s; }
.snowflake:nth-of-type(22) { left: 30%; animation-delay: 1.8s; }
.snowflake:nth-of-type(23) { left: 40%; animation-delay: 2.9s; }
.snowflake:nth-of-type(24) { left: 60%; animation-delay: 1.1s; }
.snowflake:nth-of-type(0) .inner,
.snowflake:nth-of-type(10) .inner,
.snowflake:nth-of-type(20) .inner { animation-delay: 0s; }
.snowflake:first-of-type .inner,
.snowflake:nth-of-type(11) .inner,
.snowflake:nth-of-type(21) .inner { animation-delay: 1s; }
.snowflake:nth-of-type(2) .inner,
.snowflake:nth-of-type(12) .inner,
.snowflake:nth-of-type(22) .inner { animation-delay: 6s; }
.snowflake:nth-of-type(3) .inner,
.snowflake:nth-of-type(23) .inner,
.snowflake:nth-of-type(13) .inner { animation-delay: 4s; }
.snowflake:nth-of-type(4) .inner,
.snowflake:nth-of-type(24) .inner,
.snowflake:nth-of-type(14) .inner { animation-delay: 2s; }
.snowflake:nth-of-type(5) .inner,
.snowflake:nth-of-type(15) .inner { animation-delay: 8s; }
.snowflake:nth-of-type(6) .inner,
.snowflake:nth-of-type(16) .inner { animation-delay: 7s; }
.snowflake:nth-of-type(7) .inner,
.snowflake:nth-of-type(17) .inner { animation-delay: 2.5s; }
.snowflake:nth-of-type(8) .inner,
.snowflake:nth-of-type(18) .inner { animation-delay: 1s; }
.snowflake:nth-of-type(9) .inner,
.snowflake:nth-of-type(19) .inner { animation-delay: 3s; }
.btn:active,
.btn:focus,
.form-control:active,
.form-control:focus {
    box-shadow: none !important;
}
/* Keyboard focus stays visible even though Bootstrap's focus glow is removed. */
.btn:focus-visible,
.form-control:focus-visible,
.units-toggle button:focus-visible,
.saved__chip:focus-visible,
.saved__clear:focus-visible,
.hero-howto summary:focus-visible,
.forecast__table summary:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid var(--answer-yes);
    outline-offset: 2px;
}

/* --- Frame: the header bar, then the page filling the rest of the screen ---
 * Every page shares the same side gutter. The header's contents, the page and
 * the footer sit in one centred column up to --page-max. */
:root { --gutter: clamp(1.5rem, 3vw, 3rem); --page-max: 1440px; --header-h: 56px; }
html, body.screen-root { height: 100%; margin: 0; overflow: hidden; }
body.screen-root { display: flex; flex-direction: column; }
.page-width { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.screen { flex: 1 1 auto; min-height: 0; }
.screen__content {
    padding: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1 0 auto;
}
/* Search, answer and lists (app partial). The search keeps a usable width; the rest fills the page. */
.app-page { width: 100%; display: flex; flex-direction: column; gap: 1.25rem; }
/* The negative margin trims the blank space above the capitals, so every page starts
   on the same line below the header, whether with a title, a search or a card. */
.page-title, .hero-brand__name { margin: -0.16em 0 0; }
.page-title { margin-bottom: 0.6rem; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.page-title + p, .page-head p { max-width: 70ch; color: var(--text-muted); text-wrap: pretty; }
/* The title sits beside the search, on the same columns as the page below. Without a
   title (or once there's a result, which takes its place) the recent places do. */
.lookup, .lookup__search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem 1.25rem; }
.lookup__search { align-content: start; }
.lookup .search :is(.form-control, .btn) { min-height: 3rem; }
.page-head p { margin: 0 0 0.4rem; }
.page-head p:last-child { margin-bottom: 0; }
.app-page:has(#result .hero-answer) :is(.page-head, .hero-brand) { display: none; }
@media (min-width: 992px) {
    .lookup--head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
    .app-page:has(#result .hero-answer) .lookup--head { grid-template-columns: minmax(0, 1fr); }
    .lookup:not(.lookup--head, .app-page--home *) .lookup__search,
    .app-page:not(.app-page--home):has(#result .hero-answer) .lookup__search { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
    .lookup:not(.lookup--head, .app-page--home *) .saved,
    .app-page:not(.app-page--home):has(#result .hero-answer) .saved { padding-top: 0.6rem; }
}
/* Two columns on desktop: content, then a smaller column. Phones stack them in
   source order. A map always takes the smaller column and stays in view. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; width: 100%; }
.split__col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.split--answer > .split__col { gap: 0.9rem; }
@media (min-width: 992px) {
    .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .split--answer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .split--answer > .split__col:first-child { justify-content: center; }
    /* Cards in a row end together, except beside the much taller outlook. */
    .split--answer, .split--even { align-items: stretch; }
    .split--outlook > .outlook { order: -1; }
    .split > :only-child { grid-column: 1 / -1; }
    /* As tall as the list beside it, up to the whole visible height. */
    .split > .screen__map { order: 1; position: sticky; top: 1rem; height: 100%; min-height: 360px; max-height: calc(100vh - var(--header-h) - 2rem); max-height: calc(100dvh - var(--header-h) - 2rem); margin: 0; }
}

/* --- Home: the question and its live answer, then three plain sections --- */
.icon--bell, .icon--star, .icon--check, .icon--flake { margin-right: 0.25em; }
.saved__chip .icon--star { margin-right: 0.35em; }
.snowflake .icon { margin: 0; color: #7fb2ea; }
[aria-pressed="true"] > .icon--star, .saved__chip .icon--star { fill: currentColor; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.app-page--home .hero-brand { text-align: center; }
.app-page--home .lookup { gap: 1.25rem; }
.app-page--home .lookup__search { width: 100%; max-width: 46rem; margin-inline: auto; }
.app-page--home .saved { justify-content: center; }
.app-page--home .lookup .search :is(.form-control, .btn) { min-height: 3.25rem; padding-inline: 1.1rem; font-size: 1.05rem; }
.app-page--home .hero-howto { text-align: center; }
.app-page--home .hero-howto[open] .how-it-works-body { left: 50%; transform: translateX(-50%); }
.home { display: grid; gap: clamp(2rem, 4vw, 3.25rem); margin-top: clamp(0.5rem, 2vh, 1.5rem); }
.home p { margin: 0; }
.home h2 { margin: 0; font-size: 1.25rem; font-weight: 700; text-wrap: balance; }
.home .section-title { margin-bottom: 0.4rem; font-size: 1.05rem; font-weight: 600; }
.home__now { display: grid; gap: 1.25rem; }
.list-card { display: flex; flex-direction: column; min-width: 0; padding: 1.1rem 1.25rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.home__more { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: auto !important; font-size: 0.9rem; }
.home__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.home__head a { font-size: 0.9rem; }
.home .home__intro { max-width: 75ch; margin: 0.4rem 0 1rem; color: var(--text-muted); }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.tiles a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 100%; padding: 0.7rem 0.9rem; background: var(--surface); border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.tiles a:focus-visible { outline: 2px solid var(--answer-yes); outline-offset: 2px; }
.tiles__name { font-weight: 600; line-height: 1.3; }
.tiles__place { display: block; }
.tiles__name span, .tiles__name + span:not(.state-table__answer) { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
@media (hover: hover) { .tiles a:hover { background: var(--chart-grid); } }
.guide-cols { display: grid; gap: 1.75rem 2.5rem; }
.guide-cols h2 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.guide-cols p { max-width: 70ch; line-height: 1.6; margin: 0; }
.guide-cols + .privacy-back { margin-top: 2rem; }
.page-title + p + .guide-cols { margin-top: 2rem; }
/* Short pages with one thing to say or do: confirm, unsubscribe, not found, errors */
.message-page { width: 100%; max-width: 36rem; margin-inline: auto; padding-bottom: 2rem; text-align: center; }
.message-page p { margin: 0 auto 1rem; }
.message-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem !important; }
/* 12 resorts: every column count divides evenly, so the last row is always full. */
@media (min-width: 576px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
    .home__now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home__now > .screen__map { grid-column: 1 / -1; margin: 0; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .guide-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guide-cols--2 { display: block; columns: 2; column-gap: 2.5rem; }
    .guide-cols--2 > section { break-inside: avoid; padding-bottom: 1.75rem; }
}
@media (min-width: 1200px) {
    .home__now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
    .home__now > .screen__map { grid-column: auto; height: auto; min-height: 340px; }
    .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Columns drop the margin of the card at their end, so the space below is the group's own. */
.directory__groups { columns: 18rem; column-gap: 1.25rem; margin-bottom: 1.25rem; }
.directory__groups .directory__state:last-child { margin-bottom: 0; }
.directory > p { margin: 0; }
/* /sitemap: the sections, then the states in the directory's columns. */
.sitemap-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1.25rem; margin-block: 1.5rem 2rem; }
.sitemap-sections .directory__state { margin: 0; }
.sitemap-title { margin: 0 0 0.9rem; font-size: 1.25rem; font-weight: 700; }
.sitemap-title a { color: inherit; }
.icon--external { width: 1em; height: 1em; vertical-align: -0.1em; }
.directory__groups .directory__state { break-inside: avoid; }
.compare-page .split .section-title:first-child { margin-top: 0; }
.screen__map {
    position: relative;
    background: rgba(128, 128, 128, 0.08);
}
/* One scrolling column, footer at the end. */
.screen--page { display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.screen--page .screen__content { padding-bottom: 2.5rem; }

/* --- Header bar --- */
.site-header { flex: 0 0 auto; position: relative; z-index: 1050; background: var(--bs-body-bg); border-bottom: 1px solid var(--chart-grid); }
.site-header__inner { display: flex; align-items: center; gap: 1.75rem; min-height: var(--header-h); }
.site-header__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
.site-header__brand svg { width: 28px; height: 28px; flex: 0 0 auto; }
.site-header__nav { display: flex; align-items: center; gap: 0.15rem; }
.site-header__nav a { padding: 0.45rem 0.65rem; font-size: 0.9rem; color: inherit; text-decoration: none; opacity: 0.8; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header__nav a:hover { opacity: 1; }
.site-header__nav a[aria-current="page"] { opacity: 1; font-weight: 600; border-bottom-color: var(--answer-yes); }
.site-header__nav-extra { display: none; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.site-header__menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: transparent; color: inherit; border-radius: 6px; }
.site-header__menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: visible; }
.site-header__menu path { transition: transform 0.2s ease, opacity 0.15s ease; transform-origin: 12px 12px; }
.site-header__menu[aria-expanded="true"] .site-header__menu-top { transform: rotate(45deg) translateY(5px); }
.site-header__menu[aria-expanded="true"] .site-header__menu-mid { opacity: 0; }
.site-header__menu[aria-expanded="true"] .site-header__menu-bot { transform: rotate(-45deg) translateY(-5px); }
@media (hover: hover) { .site-header__menu:hover { background: var(--chart-grid); } }
@media (prefers-reduced-motion: reduce) { .site-header__menu path { transition: none; } }
/* Small laptops and landscape tablets: all seven links, and the units toggle, fit on one line. */
@media (min-width: 992px) and (max-width: 1159.98px) {
    .site-header__inner { gap: 0.75rem; }
    .site-header__nav { gap: 0; }
    .site-header__nav a { padding-inline: 0.4rem; font-size: 0.85rem; }
}

/* Opened from the home screen on an iPhone or iPad (html.ios-app, set in the layout),
   the header stays pinned while the page scrolls. iOS blurs and tints whatever sits
   under the status bar; pinned, that's always the header rather than page content.
   In a normal browser tab the header scrolls away as usual. */
html.ios-app .site-header { position: sticky; top: 0; }
html.ios-app { scroll-padding-top: 60px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--chart-grid); font-size: 0.85rem; }
/* The about block spans the full width; the three link columns share the row below it equally. */
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; padding-block: 1.75rem 1.25rem; }
.site-footer__about { grid-column: 1 / -1; }
/* All four columns fit in one row on desktop. */
@media (min-width: 992px) {
    .screen--page .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .screen--page .site-footer__about { grid-column: auto; }
}
.site-footer__about p { margin: 0 0 0.4rem; color: var(--text-muted); }
.site-footer__name { display: flex; align-items: center; gap: 0.45rem; color: inherit !important; font-weight: 700; font-size: 0.95rem; }
.site-footer__name svg { width: 20px; height: 20px; flex: 0 0 auto; }
.site-footer h2 { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__about a { text-decoration: underline; }
/* The rule above the copyright runs full width, like the footer's top border. */
.site-footer__bottom { border-top: 1px solid var(--chart-grid); }
.site-footer__bottom p { margin-block: 0; padding-block: 0.9rem 1.25rem; font-size: 0.8rem; color: var(--text-muted); }

.hero-howto {
    position: relative;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    text-align: left;
}
/* Only the link is dimmed: dimming the whole block made the note below it see-through. */
.hero-howto summary {
    opacity: 0.7;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
    color: inherit;
}
.hero-howto summary:hover { text-decoration: underline; opacity: 1; }
.hero-howto summary::-webkit-details-marker { display: none; }
.hero-howto summary::marker { content: ""; }
.hero-howto[open] .how-it-works-body {
    position: absolute;
    top: 1.6rem;
    left: 0;
    width: min(320px, 80vw);
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 0.875rem 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
}
@media (prefers-color-scheme: light) {
    .hero-howto[open] .how-it-works-body {
        background: #fff;
        color: #222;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.hero-brand__name {
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-wrap: balance;
}
.hero-brand__now { margin: 0.6rem 0 0; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; text-wrap: balance; }
.hero-brand__now strong { color: var(--brand); }
.hero-tagline { margin: 0.4rem 0 0; color: var(--text-muted); text-wrap: balance; }
.hero-form { margin: 0; }
.search { position: relative; }
.hero-alert {
    border: 1px solid #f0ad4e;
    background: rgba(240, 173, 78, 0.12);
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    color: inherit;
    font-size: 0.9rem;
}

.result { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.15s; }
.result.is-loading { opacity: 0.5; }
.hero-answer {
    padding: 0.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.hero-answer__headline {
    font-weight: 900;
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-align: center;
    color: var(--answer-no);
    margin: 0;
}
.hero-answer__headline[data-answer="yes"] { color: var(--answer-yes); }
.hero-answer__meta {
    text-align: center;
    text-wrap: balance;
    margin: 0;
    opacity: 0.85;
    font-size: 1.05rem;
}
.hero-answer__error {
    text-align: center;
    color: #dc3545;
    margin: 0;
}


.how-it-works-body { display: none; }
.hero-howto[open] .how-it-works-body { display: block; }

/* Phones and tablets: an ordinary scrolling page instead of the fixed single
   screen, so the search suggestions can't be clipped. */
@media (max-width: 991.98px) {
    :root { --gutter: 1rem; }
    html, body.screen-root { height: auto; overflow: visible; }
    body.screen-root { display: block; }
    .screen__content { gap: 0.9rem; padding: 2rem 1rem 1.5rem; }
    .screen--page { overflow: visible; }
    .hero-answer__headline { font-size: clamp(3.5rem, 16vw, 5.5rem); }

    /* Header: name, units and a Menu button; the pages open in a panel below. */
    .site-header__inner { gap: 0.75rem; min-height: 52px; }
    .site-header__menu { display: inline-flex; }
    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem var(--gutter) 0.75rem;
        background: var(--surface-raised);
        border-bottom: 1px solid var(--chart-grid);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }
    .site-header.is-open .site-header__nav { display: flex; }
    .site-header__nav a { padding: 0.65rem 0; font-size: 1rem; border-bottom: 1px solid var(--chart-grid); }
    .site-header__nav a[aria-current="page"] { border-bottom-color: var(--chart-grid); color: var(--answer-yes); }
    .site-header__nav-extra { display: block; }
}
@media (max-width: 389.98px) {
    .site-header__brand { font-size: 0.95rem; gap: 0.4rem; }
    .site-header__brand svg { width: 24px; height: 24px; }
    .site-header__inner { gap: 0.5rem; }
}
/* The smallest phones: just the mark (the name stays for screen readers). */
@media (max-width: 359.98px) {
    .site-header__brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .snowflake, .snowflake .inner, .rotate { animation: none !important; }
}
/* --- Tokens ---
 * Snowmaking tiers are an ordinal blue ramp (validated with the dataviz
 * palette checker, light and dark); warm tiers are neutral grays.
 * Dark mode re-steps the ramp so the coldest tier is the most salient.
 */
:root {
    --tier-ideal: #1c5cab;
    --tier-great: #3987e5;
    --tier-marginal: #86b6ef;
    --tier-too_warm: #a9a8a1;
    --tier-no_chance: #d3d2cc;
    --answer-yes: #2a78d6;
    --answer-no: #6b6a64;
    --chart-line: #52514e;
    --chart-grid: rgba(0, 0, 0, 0.12);
    --chart-night: rgba(0, 0, 0, 0.045);
    --text-muted: rgba(0, 0, 0, 0.62);
    --surface-raised: #fff;
    /* New snow on the map: one-hue ordinal ramp, under 3″ / 3–5″ / 6–11″ / 12″+,
       with the label ink that reads best on each step (APCA). */
    --snow-1: #86b6ef; --snow-ink-1: #1a1a19;
    --snow-2: #3987e5; --snow-ink-2: #fff;
    --snow-3: #1c5cab; --snow-ink-3: #fff;
    --snow-4: #0d366b; --snow-ink-4: #fff;
}
:root[data-bs-theme="dark"] {
    --tier-ideal: #86b6ef;
    --tier-great: #3987e5;
    --tier-marginal: #256abf;
    --tier-too_warm: #6f6e68;
    --tier-no_chance: #4a4945;
    --answer-yes: #6da7ec;
    --answer-no: #a9a8a1;
    --chart-line: #c3c2b7;
    --chart-grid: rgba(255, 255, 255, 0.14);
    --chart-night: rgba(255, 255, 255, 0.05);
    --text-muted: rgba(255, 255, 255, 0.68);
    --surface-raised: #2b3035;
    --snow-1: #256abf; --snow-ink-1: #fff;
    --snow-2: #5598e7; --snow-ink-2: #fff;
    --snow-3: #9ec5f4; --snow-ink-3: #1a1a19;
    --snow-4: #cde2fb; --snow-ink-4: #1a1a19;
}
[data-tier="ideal"]     { --tier: var(--tier-ideal); }
[data-tier="great"]     { --tier: var(--tier-great); }
[data-tier="marginal"]  { --tier: var(--tier-marginal); }
[data-tier="too_warm"]  { --tier: var(--tier-too_warm); }
[data-tier="no_chance"] { --tier: var(--tier-no_chance); }

/* --- Units: every temperature renders in both, one is shown --- */
.u-c { display: none; }
:root[data-units="c"] .u-c { display: inline; }
:root[data-units="c"] .u-f { display: none; }
.t { white-space: nowrap; }

.units-toggle, .seg-toggle { display: inline-flex; border: 1px solid var(--chart-grid); flex: 0 0 auto; }
.units-toggle button, .seg-toggle button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.units-toggle button[aria-pressed="true"], .seg-toggle button[aria-pressed="true"] { background: var(--chart-grid); opacity: 1; font-weight: 600; }

.hero-answer__inputs,
.hero-answer__source {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.hero-answer__inputs { text-align: center; }
.hero-answer__source abbr { text-decoration: underline dotted; cursor: help; }
.hero-answer__window {
    margin: 0;
    text-align: center;
    font-weight: 600;
}
.hero-answer__window[data-state="none"] { font-weight: 400; color: var(--text-muted); }

/* --- Gauge --- */
.gauge { width: 100%; max-width: 520px; margin: 0 auto; }
.gauge__label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.gauge__key { width: 10px; height: 10px; border-radius: 50%; background: var(--tier); flex: 0 0 auto; }
.gauge__track { position: relative; display: flex; gap: 2px; height: 10px; }
.gauge__band { display: block; height: 100%; background: var(--tier); }
.gauge__band:first-of-type { border-radius: 4px 0 0 4px; }
.gauge__band:nth-last-of-type(1) { border-radius: 0 4px 4px 0; }
.gauge__marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 18px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--bs-body-color);
    box-shadow: 0 0 0 2px var(--bs-body-bg);
}
.gauge__value { position: relative; height: 1.25rem; margin-bottom: 0.45rem; font-size: 0.8rem; font-weight: 600; line-height: 1.25rem; }
.gauge__value > span { position: absolute; white-space: nowrap; }
.gauge__line::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 0.35rem; border-left: 1px solid currentColor; }
.gauge__scale { position: relative; display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: 0.75rem; color: var(--text-muted); }
.gauge__line { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* --- Forecast chart --- */
.forecast { margin: 0; width: 100%; }
.forecast__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.forecast__title span { font-weight: 400; color: var(--text-muted); }
.forecast__chart { position: relative; }
.forecast__chart:focus-visible { outline: 2px solid var(--answer-yes); outline-offset: 2px; }
.forecast__svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.forecast__night { fill: var(--chart-night); }
.forecast__bar { fill: var(--tier); }
.forecast__threshold { stroke: var(--chart-line); stroke-width: 1; }
.forecast__tick { stroke: var(--chart-line); stroke-width: 1; opacity: 0.6; }
.forecast__midnight { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
/* The charts' time scale (chart-time partial): sun and moon above, times and dates below. */
.forecast:has(.chart-axis) { container: chart / inline-size; }
.chart-sky { position: relative; height: 26px; }
.chart-sky > .is-night { background: var(--chart-night); border-radius: 4px 4px 0 0; }
.chart-sky > span { position: absolute; top: 0; display: grid; place-items: start center; height: 100%; padding-top: 4px; overflow: hidden; container: chart-band / inline-size; }
.chart-sky .wx-icon { width: 16px; height: 16px; color: var(--text-muted); }
@container chart-band (max-width: 17px) { .chart-sky .wx-icon { display: none; } }
.chart-axis { font-size: 0.75rem; line-height: 1.2rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-axis__hours, .chart-axis__days { position: relative; height: 1.2rem; }
.chart-axis__hours > span:not(.chart-axis__now) { position: absolute; transform: translateX(-50%); }
.chart-axis__days { height: 1.5rem; margin-bottom: 0.6rem; }
/* Each day runs from midnight to midnight, continuing the dashed lines above. */
.chart-axis__days > div { position: absolute; height: 100%; padding-top: 0.15rem; overflow: hidden; text-align: center; container: chart-day / inline-size; }
.chart-axis__days > div + div { border-left: 1px dashed var(--text-muted); }
.chart-axis__days strong { color: var(--bs-body-color); font-weight: 600; }
@container chart-day (max-width: 82px) { .chart-axis__days strong + span { display: none; } }
@container chart-day (max-width: 38px) { .chart-axis__days > div > span { display: none; } }
@container chart (max-width: 500px) { .chart-axis .is-near-10 { display: none; } }
@container chart (max-width: 360px) { .chart-axis .is-near-14 { display: none; } }
@container chart (max-width: 300px) { .chart-axis .is-minor { display: none; } }
@container chart (max-width: 470px) { .chart-axis[data-span="72"] .is-minor { display: none; } }
.forecast__cursor { stroke: var(--chart-line); stroke-width: 1; }
/* Text scales with the chart (480 units wide), so each size of chart sets its own: about 11 to 13px on screen. */
.forecast__chart { container-type: inline-size; }
.forecast__text { font-size: 8.5px; fill: var(--text-muted); }
@container (max-width: 640px) { .forecast__text { font-size: 10.5px; } }
@container (max-width: 520px) { .forecast__text { font-size: 12.75px; } }
@container (max-width: 420px) { .forecast__text { font-size: 15.5px; } }
@container (max-width: 340px) { .forecast__text { font-size: 18px; } }
@container (max-width: 290px) { .forecast__text { font-size: 21.5px; } }
.forecast__text--strong { fill: var(--bs-body-color); font-weight: 600; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.forecast__hit { fill: transparent; cursor: crosshair; }
.forecast__tooltip {
    position: absolute;
    top: -0.25rem;
    transform: translate(-50%, -100%);
    background: var(--surface-raised);
    border: 1px solid var(--chart-grid);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}
.forecast__tooltip strong { display: block; font-size: 0.95rem; }
.forecast__tooltip span { color: var(--text-muted); }
.forecast__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.forecast__legend li { display: inline-flex; align-items: center; gap: 0.3rem; }
.forecast__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--tier); }
.forecast__swatch--night { background: var(--chart-night); border: 1px solid var(--chart-grid); }
.forecast__table { margin-top: 0.5rem; font-size: 0.8rem; }
.forecast__table summary { cursor: pointer; color: var(--text-muted); }
.forecast__table-scroll { max-height: 240px; overflow-y: auto; margin-top: 0.4rem; }
.forecast__table table { font-variant-numeric: tabular-nums; margin: 0; }

/* --- Base / summit cards (tabs) --- */
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; width: 100%; max-width: 520px; margin: 0 auto; }
.zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.55rem 0.75rem 0.6rem calc(0.75rem + 4px);
    background: transparent;
    color: inherit;
    text-align: left;
    /* One even 1px border; the tier colour is an inset bar, so there are no
       mitred corners between borders of different widths to blur. */
    border: 1px solid var(--chart-grid);
    box-shadow: inset 4px 0 0 var(--tier);
    cursor: pointer;
}
.zone[aria-selected="true"] { background: var(--chart-night); border-color: var(--chart-line); }
.zone:focus-visible { outline: 2px solid var(--answer-yes); outline-offset: 2px; }
.zone__name { font-size: 0.8rem; color: var(--text-muted); }
.zone__name span { white-space: nowrap; }
.zone__answer { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: var(--answer-no); }
.zone__answer[data-answer="yes"] { color: var(--answer-yes); }
.zone__wb { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.zone__wb span { color: var(--text-muted); }
.zone-panel { width: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.zone-panel[hidden] { display: none; }

/* --- Weather sections: Right now, Snow forecast, 7-day outlook --- */
.section-title { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.5rem; }
.section-title span { font-weight: 400; color: var(--text-muted); }
.wx-now, .snowfall, .outlook { width: 100%; padding-top: 1rem; border-top: 1px solid var(--chart-grid); }
.wx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wx-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wx-icon--lg { width: 44px; height: 44px; }
.wx-now__main { display: flex; align-items: center; gap: 0.75rem; }
.wx-now__summary { font-weight: 600; }
.wx-now__temp { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-now__temp > span:not(.t) { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-left: 0.25rem; }
.wx-stats { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.6rem 0 0.25rem; font-size: 0.85rem; }
.wx-stats div { display: flex; gap: 0.35rem; }
.wx-stats dt { font-weight: 400; color: var(--text-muted); }
.wx-stats dd { margin: 0; font-variant-numeric: tabular-nums; }

.hero-answer__powder { margin: 0; font-weight: 600; color: var(--answer-yes); }
.hero-answer__powder:not([data-level]) { font-weight: 500; color: inherit; }

.snowfall__totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0 0 0.75rem; }
.snowfall__total { border: 1px solid var(--chart-grid); padding: 0.4rem 0.6rem; }
.snowfall__total dt { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.snowfall__total dd { margin: 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.snowfall__total.is-snowy { border-color: var(--tier-great); }
.snowfall__none { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.forecast__bar--snow { fill: var(--new-snow); }

/* --- Alerts: signup form, manage page, privacy page --- */
.alerts-form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--chart-grid);
    text-align: left;
    font-size: 0.9rem;
}
.alerts-form__title { font-weight: 600; margin: 0 0 0.4rem; }
.alerts-area-form { margin: 0; max-width: none; }
.alerts-area-form .input-group { margin-top: 0.2rem; }
.alerts-option { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; }
.alerts-option .form-select { width: auto; display: inline-block; padding-top: 0.15rem; padding-bottom: 0.15rem; }
.alerts-form__row { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.alerts-form__row .form-control { min-width: 0; }
.alerts-form__row .btn { flex: 0 0 auto; white-space: nowrap; }
.alerts-form__message { margin: 0.5rem 0 0; font-weight: 500; }
.alerts-form__message.is-error { color: var(--bs-danger-text-emphasis, #b02a37); }
.alerts-form__fine { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--text-muted); }
.alerts-form__fine a { color: inherit; }

.alerts-page { padding: 0; }
.alerts-page__notice { padding: 0.5rem 0.75rem; border-left: 3px solid var(--answer-yes); background: var(--chart-night); }
.alerts-page .section-title { margin-top: 1.25rem; font-size: 1rem; }
.page-cols__aside > .section-title:first-child { margin-top: -0.18em; }
.alerts-page__more { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.alerts-manage__resort, .alerts-manage__units { border: 1px solid var(--chart-grid); padding: 0.6rem 0.9rem 0.4rem; margin: 0 0 0.75rem; }
.alerts-manage__remove { padding: 0; color: var(--text-muted); }
.alerts-page__stop { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* --- Resort pages, home guide and resort directory --- */
.crumbs { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: -0.5rem; }
.crumbs a { color: inherit; }
.hero-answer__question { text-align: center; font-size: 1.15rem; font-weight: 600; margin: 0; }
.resort-about { width: 100%; padding-top: 1rem; border-top: 1px solid var(--chart-grid); font-size: 0.9rem; }
.resort-about p { margin: 0 0 0.75rem; }
.resort-about .section-title { margin-top: 1.1rem; }
.resort-about .section-title:first-child { margin-top: 0; }
/* Each top-five list's closing link shouldn't add to the gap the grid already leaves. */
.top-lists > div > p:last-child { margin-bottom: 0; }
/* Row gap matters when the two lists stack on a phone. */
.top-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 1.5rem; }
.top-lists .section-title { margin-top: 0; }
.board-switch { margin: 0.35rem 0 0; }
.board-switch a { padding: 0.25rem 0.6rem; font-size: 0.85rem; color: inherit; text-decoration: none; opacity: 0.7; }
.board-switch a[aria-current="page"] { background: var(--chart-grid); opacity: 1; font-weight: 600; }
.page-head .crumbs { text-align: left; margin: 0.35rem 0 0; }
@media (min-width: 576px) {
    .state-board .state-table { table-layout: fixed; }
    .state-board .state-table thead th:first-child { width: 46%; }
}
.state-table__scroll { overflow-x: auto; margin: 0 0 0.5rem; }
.state-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.state-table th, .state-table td { padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--chart-grid); text-align: left; vertical-align: baseline; }
.state-table thead th { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.state-table tbody th { font-weight: 500; }
.state-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.state-table__answer { font-weight: 700; }
.state-table__answer[data-answer="yes"] { color: var(--brand); }
.state-table__answer[data-answer="no"] { color: var(--answer-no); }
.state-table__stale { color: var(--text-muted); font-style: italic; }
/* The resort gets its own row: names are long. */
.embed-builder label:first-child { grid-column: 1 / -1; }
.embed-builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem 1rem; margin: 0 0 1rem; font-size: 0.85rem; }
.embed-builder label { display: flex; flex-direction: column; gap: 0.25rem; }
/* Settings, code and notes on the left with the preview beside them; on phones the preview follows the settings. */
.embed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "settings preview" "code preview" "notes preview";
    grid-template-rows: auto auto 1fr;
    gap: 0 3rem;
    align-items: start;
}
.embed-layout__settings { grid-area: settings; }
@media (min-width: 480px) { .embed-builder { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.embed-layout__preview { grid-area: preview; position: sticky; top: 0; }
.embed-layout__code { grid-area: code; }
.embed-layout__notes { grid-area: notes; }
@media (max-width: 991.98px) {
    .embed-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "settings" "preview" "code" "notes"; grid-template-rows: none; }
    .embed-layout__preview { position: static; }
}
.embed-preview { display: grid; place-items: center; margin: 0 0 1rem; min-height: 16rem; padding: 1.25rem; background: var(--chart-night); border: 1px solid var(--chart-grid); }
/* Bootstrap's .form-control loads after this file, so this needs the extra class to win. */
.embed-page .embed-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; line-height: 1.45; color: var(--text-muted); resize: vertical; }
.embed-copy { margin: 0.5rem 0 1rem; }
.embed-copy span { margin-left: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
/* --- My resorts --- */
.my-resorts__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.my-card { border: 1px solid var(--chart-grid); padding: 0.9rem 1rem; font-size: 0.9rem; min-height: 9rem; }
.my-card__name { font-size: 1rem; font-weight: 700; margin: 0 0 0.3rem; }
.my-card__stats span.my-card__when { display: block; font-size: 0.8rem; }
.my-card__answer, .my-card__stats { margin: 0 0 0.4rem; color: var(--text-muted); }
.my-card__answer .state-table__answer { font-size: 1.15rem; }
.my-card__days { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: 0.72rem; text-align: center; }
.my-card__days li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.3rem 0; background: var(--chart-night); }
.my-card__days li.is-snowy { background: color-mix(in srgb, var(--answer-yes) 16%, transparent); font-weight: 600; }
.my-card__day { color: var(--text-muted); }
.my-card__sm { color: var(--text-muted); }
.my-card__remove { padding: 0; margin-top: 0.5rem; font-size: 0.8rem; }
.my-resorts__compare { margin: -0.5rem 0 1rem; }

.privacy-back { margin-top: 2rem; }

/* --- Season so far (resort pages) --- */
.season { width: 100%; padding-top: 0.75rem; border-top: 1px solid var(--chart-grid); }
.season-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0.75rem 0; }
/* Each chart is its own card, titled with a swatch of its bar colour. */
.season-chart { margin: 0; padding: 0.75rem 0.85rem 1.6rem; border: 1px solid var(--chart-grid); }
.season-chart figcaption { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.season-chart figcaption::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--tier-great); }
.season-chart--snow figcaption::before { background: var(--new-snow); }
.season-chart figcaption span { font-weight: 400; color: var(--text-muted); }
.season-bars { display: flex; align-items: flex-end; gap: clamp(1px, 1%, 4px); height: 120px; padding-inline: 8px; border-bottom: 1px solid var(--chart-grid); }
.season-bar { flex: 1 1 0; min-width: 0; height: 100%; container: season-bar / inline-size; }
.season-bar__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.season-bar__fill { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; background: var(--tier-great); }
.season-chart--snow .season-bar__fill { background: var(--new-snow); }
.season-bar__value { font-size: 0.7rem; font-variant-numeric: tabular-nums; margin-bottom: 2px; white-space: nowrap; }
.season-bar__label { position: absolute; top: 100%; margin-top: 3px; font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
/* A bar is added every week: as they narrow, label every 2nd, 4th, then 8th (counting back from the latest). */
@container season-bar (max-width: 40px) {
    .season-bar:not(:nth-last-child(2n + 1)) .season-bar__label { display: none; }
    .season-bar:not(.is-best) .season-bar__value { display: none; }
}
@container season-bar (max-width: 18px) { .season-bar:not(:nth-last-child(4n + 1)) .season-bar__label { display: none; } }
@container season-bar (max-width: 8px) { .season-bar:not(:nth-last-child(8n + 1)) .season-bar__label { display: none; } }

/* --- Info toggletip (ⓘ) --- */
.info-tip { display: inline-block; position: relative; vertical-align: middle; margin-left: calc(0.3rem - 2px); top: -3px; font-size: 0.85rem; font-weight: 400; line-height: 1.4; }
.info-tip summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 0.95rem; height: 0.95rem; border: 1.25px solid currentColor; border-radius: 50%; font: italic 700 0.6rem/1 Georgia, serif; color: var(--text-muted); cursor: pointer; }
.info-tip summary::-webkit-details-marker { display: none; }
.info-tip summary:hover, .info-tip[open] summary { color: var(--answer-yes); }
.info-tip summary:focus-visible { outline: 2px solid var(--answer-yes); outline-offset: 2px; }
/* site.js places the open tip (fixed) so it always stays inside the window. */
.info-tip__body { position: fixed; z-index: 1060; top: 0; left: 0; width: min(18rem, calc(100vw - 16px)); padding: 0.7rem 0.85rem; background: var(--surface-raised); color: var(--bs-body-color); border: 1px solid var(--chart-grid); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); text-align: left; font-size: 0.82rem; }
.info-tip__body p { margin: 0 0 0.45rem; color: inherit; }
.info-tip__body p:last-child { margin-bottom: 0; }

/* --- Early-season watch --- */
.watch-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0; }
.watch-filter [aria-pressed="true"] { background: var(--chart-grid); font-weight: 600; }
.watch-table__rank { color: var(--text-muted); width: 2.5rem; }

/* --- How it works --- */
.how-layout { display: grid; grid-template-columns: 16rem minmax(0, 70ch); gap: 1rem 4rem; align-items: start; margin-top: 1rem; }
.how-toc { position: sticky; top: 1.5rem; padding: 0.9rem 1rem; border: 1px solid var(--chart-grid); font-size: 0.85rem; }
.how-toc ol { margin: 0; padding-left: 1.7rem; display: grid; gap: 0.35rem; }
.how-toc li::marker { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.how-body code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--surface); color: inherit; }
.how-body .how-formula code { padding: 0; background: none; }
.how-body section { scroll-margin-top: 1rem; }
.how-body h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.how-body section:first-child h2 { margin-top: 0; }
.how-body li { margin-bottom: 0.35rem; }
.how-formula { margin: 0 0 1rem; padding: 0.9rem 1rem; background: var(--chart-night); border: 1px solid var(--chart-grid); font-size: 0.85rem; overflow-x: auto; }
@media (max-width: 991.98px) {
    .how-layout { grid-template-columns: minmax(0, 1fr); }
    .how-toc { position: static; }
}

/* --- Trip planner --- */
.trip-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); gap: 0.5rem 2rem; margin: 1rem 0 0.5rem; font-size: 0.85rem; }
.trip-form fieldset { min-width: 0; }
.trip-form legend { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.trip-form__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.trip-form__row label { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 8rem; }
.trip-form__row label:first-child { flex-basis: 14rem; }
.trip-form__row .input-group { flex-wrap: nowrap; }
.trip-form__or { padding-bottom: 0.45rem; color: var(--text-muted); }
.trip-results__title { margin-top: 1.5rem; }
.trip-results__days { max-width: 24rem; }
.day-key { max-width: 70ch; margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.day-key strong { color: var(--bs-body-color); }
.my-resorts:not(:has(.my-resorts__group:not([hidden]))) .day-key { display: none; }
.snow-board__amount { text-align: right; }
.snow-board__amount small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* --- Compare --- */
@media (min-width: 480px) { .compare-picker.compare-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .compare-picker.compare-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.compare-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem 1rem; margin: 1rem 0 1.5rem; font-size: 0.85rem; }
.compare-picker label { display: flex; flex-direction: column; gap: 0.25rem; }
.compare-page .section-title { margin-top: 1.5rem; }
/* Both compare tables share column widths so each resort lines up; phones scroll them sideways. */
.compare-table { table-layout: fixed; min-width: 36rem; }
.compare-table thead th:first-child, .compare-table tbody th { width: 11rem; }
.compare-table th[scope="col"] { white-space: normal; }
.compare-table tbody th { white-space: nowrap; }
.compare-table__from { display: block; white-space: normal; }
.compare-table__note { color: var(--text-muted); font-size: 0.8rem; }
.compare-table td, .compare-table thead th:not(:first-child) { padding-left: 0.65rem; padding-right: 0.65rem; }
.compare-map { height: 340px; margin: 0 0 0.5rem; border: 1px solid var(--chart-grid); }
.map-pick { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem 0.2rem 0.35rem; background: var(--surface-raised); color: inherit; border: 2px solid var(--answer-yes); border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.map-pick .map-pin { width: 10px; height: 10px; border-width: 1.5px; box-shadow: none; }
.map-pick--rank { justify-content: center; min-width: 26px; height: 26px; padding: 0; background: var(--answer-yes); color: #fff; border-color: #fff; }
.trip-map { height: 460px; }
.map-pin--in-range { width: 15px; height: 15px; border-color: var(--answer-yes); border-width: 2.5px; }
.map-start { padding: 0.2rem 0.55rem; background: var(--answer-yes); color: #fff; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); font-size: 12px; font-weight: 700; white-space: nowrap; }
.compare-days td.is-best { background: color-mix(in srgb, var(--answer-yes) 14%, transparent); font-weight: 600; }
.state-table__note { margin: -0.2rem 0 0.6rem; font-size: 0.8rem; color: var(--text-muted); }
.top-list { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: rank; }
.top-list:last-child { margin-bottom: 0; }
.top-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--chart-grid); counter-increment: rank; }
.top-list li:last-child, .snow-board__list li.snow-board__row:last-child { border-bottom: 0; }
/* The whole row opens the resort. */
.top-list li, .snow-board__row { position: relative; }
:is(.top-list, .snow-board__list) a::after { content: ""; position: absolute; inset: 0; }
.top-list li > span { padding-left: 1.6rem; }
.top-list li > span::before { content: counter(rank) "."; position: absolute; left: 0; line-height: 1.9; color: var(--text-muted); font-size: 0.8rem; }
.top-list__state { color: var(--text-muted); font-size: 0.8rem; }
.top-list__detail, .snow-board__detail { text-wrap: balance; }
.search .form-control { text-overflow: ellipsis; }
.top-list__detail { display: block; color: var(--text-muted); font-size: 0.8rem; }
.top-list__empty { margin: 0; }
.top-list strong, .snow-board__amount { font-size: 1.15rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.resort-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.3rem 1rem; list-style: none; padding: 0; margin: 0 0 0.75rem; }
.resort-links span { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.2rem; white-space: nowrap; }

/* --- Snow forecast page --- */
.snow-board { width: 100%; }
.snow-board > :last-child { margin-bottom: 0; }
.snow-board__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.35rem; }
.snow-board__intro { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.snow-board__head .section-title { margin: 0; }
.snow-board__list { list-style: none; padding: 0; margin: 0 0 0.75rem; counter-reset: rank; }
.snow-board__row {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--chart-grid);
    counter-increment: rank;
}
.snow-board__row[hidden] { display: none; }
.snow-board__row::before { content: counter(rank) "."; color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.snow-board__state { color: var(--text-muted); font-size: 0.8rem; }
.snow-board__detail { display: block; color: var(--text-muted); font-size: 0.8rem; }
.snow-board__empty, .snow-board__meta { margin: 0 0 0.6rem; color: var(--text-muted); font-size: 0.85rem; }
.snowfall__more { margin: 0.6rem 0 0; font-size: 0.85rem; }
.snowmaking-more { width: 100%; padding-top: 0.75rem; border-top: 1px solid var(--chart-grid); font-size: 0.9rem; }
.snowmaking-more p { margin: 0 0 0.5rem; }
.snowmaking-more .hero-answer__window { text-align: left; font-weight: 400; }
.directory__states { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.25rem; font-size: 0.85rem; }
.directory__states a { padding: 0.2rem 0.7rem; background: var(--surface); border-radius: 999px; color: inherit; text-decoration: none; }
.directory__state { margin-bottom: 1.25rem; padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--radius); scroll-margin-top: 1rem; }
.directory .section-title a { color: inherit; }
.directory .resort-links { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; margin: 0; }
.directory .resort-links li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
/* Dense lists of links: the underline waits for the pointer. */
:is(.directory__state, .directory__states, .sitemap-title, .how-toc) a:not(:hover, :focus-visible) { text-decoration: none; }
@media (hover: hover) { .directory__states a:hover { background: var(--chart-grid); } }

/* --- Search suggestions --- */
.suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--surface-raised);
    border: 1px solid var(--chart-grid);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.suggest__list { list-style: none; margin: 0; padding: 0.25rem 0; max-height: 320px; overflow-y: auto; }
.suggest__item {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    column-gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}
.suggest__item[aria-selected="true"],
.suggest__item:hover { background: var(--chart-grid); }
.suggest__icon { grid-row: span 2; align-self: center; }
.suggest__main { font-weight: 500; }
.suggest__sub { font-size: 0.8rem; color: var(--text-muted); }
.suggest__heading { padding: 0.35rem 0.75rem 0.15rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); list-style: none; }
.suggest__attribution { margin: 0; padding: 0.25rem 0.75rem 0.4rem; font-size: 0.7rem; color: var(--text-muted); text-align: right; }

/* --- Map --- */
.screen__map-canvas { width: 100%; height: 100%; }
.screen__map-canvas.is-unavailable { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; }
.map-pin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tier, #8a8984);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.map-pin--resort { border-radius: 2px; transform: rotate(45deg); width: 12px; height: 12px; }
.map-pin--unknown { --tier: #8a8984; }
.map-pin--stale { opacity: 0.45; }
.map-pin--current { width: 22px; height: 22px; border-width: 3px; box-shadow: 0 0 0 4px rgba(42, 120, 214, 0.35), 0 1px 4px rgba(0, 0, 0, 0.5); }
.map-pin--dry { --tier: var(--tier-too_warm); width: 7px; height: 7px; border-width: 1px; }
.map-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--snow-fill, #8a8984);
    color: var(--snow-ink, #fff);
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.map-chip[data-snow="1"] { --snow-fill: var(--snow-1); --snow-ink: var(--snow-ink-1); }
.map-chip[data-snow="2"] { --snow-fill: var(--snow-2); --snow-ink: var(--snow-ink-2); }
.map-chip[data-snow="3"] { --snow-fill: var(--snow-3); --snow-ink: var(--snow-ink-3); }
.map-chip[data-snow="4"] { --snow-fill: var(--snow-4); --snow-ink: var(--snow-ink-4); }
.map-panel {
    position: absolute;
    top: 10px;
    bottom: 30px; /* clear of Google's logo */
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* legend at the bottom, off the Northwest's resorts */
}
.map-panel { pointer-events: none; }
.map-mode { background: var(--surface-raised); pointer-events: auto; }
.map-mode button { font-size: 0.75rem; padding: 0.2rem 0.55rem; }
.map-key > summary { display: none; width: max-content; padding: 0.35rem 0.75rem; background: var(--surface-raised); border-radius: var(--radius-sm); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); font-size: 0.75rem; font-weight: 600; cursor: pointer; pointer-events: auto; }
.map-key[open] > summary { margin-bottom: 6px; }
.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.6rem;
    background: var(--surface-raised);
    border: 1px solid var(--chart-grid);
    font-size: 0.72rem;
    line-height: 1.3;
    pointer-events: none;
}
.map-legend[hidden] { display: none; }
.map-legend > span { display: flex; align-items: center; gap: 0.4rem; }
.map-legend__title { font-weight: 600; }
.map-legend .map-chip { min-width: 16px; height: 10px; padding: 0; border-width: 1px; box-shadow: none; }
.map-legend .map-pin--dry { width: 7px; height: 7px; margin: 0 2px; --tier: var(--tier-too_warm); }
.map-legend .map-pin { width: 10px; height: 10px; border-width: 1.5px; box-shadow: none; }
.map-legend .map-pin--resort { width: 8px; height: 8px; margin: 0 1px; --tier: #8a8984; }
.map-hint {
    position: absolute;
    bottom: 28px;
    right: 64px; /* clear of the legend on one side and Google's button on the other */
    margin: 0;
    padding: 0.25rem 0.6rem;
    background: var(--surface-raised);
    border: 1px solid var(--chart-grid);
    font-size: 0.72rem;
    max-width: calc(100% - 74px);
    pointer-events: none;
    z-index: 2;
}
@media (max-width: 991.98px) {
    .map-panel { z-index: 3; } /* an open key covers the hint */
    .map-key > summary { display: block; }
}

/* --- Saved places and actions --- */
.saved { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.saved__chip {
    border: 1px solid var(--chart-grid);
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.saved__chip:hover { background: var(--chart-grid); }
.saved__clear { border: 0; background: transparent; color: var(--text-muted); font-size: 0.75rem; text-decoration: underline; padding: 0.2rem 0.3rem; }
.hero-answer__actions { display: flex; justify-content: center; gap: 0.5rem; }
.hero-answer__actions [aria-pressed="true"] { border-color: var(--answer-yes); color: var(--answer-yes); }

/* --- Pages without a map (alerts, widget, privacy): two columns on desktop,
 * stacked on phones; running text keeps a readable line length. --- */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; }
.page-cols__aside { position: sticky; top: 0; }
.prose { max-width: 70ch; }
.wide-page { width: 100%; }
@media (max-width: 991.98px) {
    .page-cols { grid-template-columns: minmax(0, 1fr); }
    .page-cols__aside { position: static; }
}

/* =============================================================================
 * Design refresh (resort page first): one card style, one brand blue.
 * Sections are soft filled cards with rounded corners and no outlines;
 * smaller tiles inside them are a step lighter (or darker in dark mode).
 * Spacing separates sections instead of divider lines.
 * ========================================================================== */
:root {
    --brand: #1f63b8;
    --brand-strong: #174f95;
    --surface: #f3f5f8;
    --tile: #fff;
    --radius: 12px;
    --radius-sm: 8px;
}
:root[data-bs-theme="dark"] {
    --brand: #5b9be6;
    --brand-strong: #7db0ec;
    --surface: #262a2f;
    --tile: #31363c;
}
/* Bootstrap loads after this file, so these need the extra attribute to win. */
:root[data-bs-theme] {
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-sm: 6px;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 31, 99, 184;
    --bs-link-hover-color: var(--brand-strong);
    --bs-link-hover-color-rgb: 23, 79, 149;
}
:root[data-bs-theme="dark"] {
    --bs-link-color-rgb: 91, 155, 230;
    --bs-link-hover-color-rgb: 125, 176, 236;
}
.btn.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-strong);
    --bs-btn-hover-border-color: var(--brand-strong);
    --bs-btn-active-bg: var(--brand-strong);
    --bs-btn-active-border-color: var(--brand-strong);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
:root[data-bs-theme="dark"] .btn.btn-primary { --bs-btn-color: #0e1b2c; --bs-btn-hover-color: #0e1b2c; --bs-btn-active-color: #0e1b2c; }
/* Secondary buttons (location, Save, Share, alerts, everywhere else): soft filled, no outline. */
.btn.btn-outline-secondary, .hero-answer__actions .btn {
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--surface);
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-hover-bg: var(--chart-grid);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-hover-color: var(--bs-body-color);
    --bs-btn-active-bg: var(--chart-grid);
    --bs-btn-active-color: var(--bs-body-color);
}
.hero-answer__actions .btn { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.hero-answer__actions [aria-pressed="true"] { --bs-btn-bg: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
/* Fields are filled like the cards; inside a card they're a step lighter. The doubled
   class beats Bootstrap (loaded after this file), so fields match the location button and other
   filled buttons beside them in every browser. */
.form-control.form-control, .form-select.form-select { background-color: var(--surface); border-color: var(--surface); }
.form-control.form-control:focus, .form-select.form-select:focus { background-color: var(--bs-body-bg); border-color: var(--brand); }
.saved__chip { border-color: transparent; background: var(--surface); }
.saved__chip:hover { background: var(--chart-grid); }
.units-toggle, .seg-toggle { border: 0; border-radius: var(--radius-sm); background: var(--surface); padding: 2px; }
.units-toggle button, .seg-toggle button { border-radius: 6px; }
.units-toggle button[aria-pressed="true"], .seg-toggle button[aria-pressed="true"] { background: var(--tile); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.map-mode.seg-toggle { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.hero-answer__headline[data-answer="yes"] { color: var(--brand); }

/* Section cards */
.wx-now, .snowfall, .outlook, .season, .resort-about, .forecast, .alerts-form, .answer-card {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem 1.2rem;
}
/* The gauge, next window and 48-hour chart read as one card. */
.answer-card .forecast { padding: 0; background: none; border-radius: 0; }
.answer-card .gauge { max-width: none; }
.answer-card :is(.hero-answer__inputs, .hero-answer__window) { text-align: left; }
.forecast { padding-bottom: 0.85rem; }
.alerts-form:not(.alerts-area-form) { max-width: 520px; }
.section-title, .forecast__title { font-size: 1.05rem; text-wrap: balance; }
.season .info-tip { top: -2px; }

/* Tiles inside cards: base/summit, snow totals, season totals and charts */
.snowfall__total, .season-chart {
    background: var(--tile);
    border: 0;
    border-radius: var(--radius-sm);
}
.snowfall__total.is-snowy { box-shadow: inset 0 0 0 2px var(--tier-great); }
.season-chart figcaption::before { border-radius: 50%; }
.zone {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    box-shadow: none;
    padding: 0.7rem 0.9rem 0.75rem;
}
/* The tier shows as a dot by the name; the open tab gets a brand ring. */
.zone__name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 0.4rem; border-radius: 50%; background: var(--tier); vertical-align: 0; }
.zone[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); }
.zone__answer[data-answer="yes"] { color: var(--brand); }

/* Gauge: one rounded track with a round marker */
.gauge__track { gap: 0; height: 8px; border-radius: 4px; overflow: hidden; }
.gauge__band:first-of-type, .gauge__band:nth-last-of-type(1) { border-radius: 0; }
.gauge { position: relative; }
.gauge__track { overflow: visible; }
.gauge__band:first-of-type { border-radius: 4px 0 0 4px; }
.gauge__band:nth-last-of-type(1) { border-radius: 0 4px 4px 0; }
.gauge__marker { top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bs-body-bg); box-shadow: 0 0 0 3px var(--bs-body-color); }

/* 7-day outlook. Each day: its name, the conditions (laid out like "Right now"), then
   three bars in fixed columns, so they line up with each other and from day to day. */
.outlook { container-type: inline-size; }
.outlook__days { list-style: none; margin: 0; padding: 0; }
.outlook__day { display: grid; gap: 0.7rem 2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--chart-grid); }
.outlook__day:first-child { padding-top: 0.4rem; }
.outlook__day:last-child { border-bottom: 0; padding-bottom: 0; }
.outlook__name { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.outlook__sky { display: flex; align-items: center; gap: 0.65rem; margin: 0; font-size: 0.9rem; line-height: 1.3; text-wrap: balance; }
.outlook__sky .wx-icon { flex: none; width: 34px; height: 34px; }
.outlook__metrics { display: grid; gap: 0.4rem; min-width: 0; font-size: 0.85rem; color: var(--text-muted); }
.outlook__metric { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) 5.6rem; align-items: center; column-gap: 0.6rem; line-height: 1.3; }
.outlook__metric strong { color: var(--bs-body-color); text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.outlook__none { color: var(--text-muted); font-weight: 400; }
.outlook__meter { position: relative; height: 6px; border-radius: 3px; background: var(--chart-grid); overflow: hidden; }
.outlook__meter i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--tier-great); }
.outlook__metric--snow i { background: var(--new-snow); }
.outlook__meter .is-range { opacity: 0.45; }
:root { --new-snow: #0f8b8d; }
:root[data-bs-theme="dark"] { --new-snow: #4cc3c0; }
@container (max-width: 19rem) { .outlook__metric { column-gap: 0.4rem; } }
/* With room, the bars sit beside the day. */
@container (min-width: 34rem) { .outlook__day { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
/* A chart inside a section card is part of that card, not another card. */
.snowfall .forecast, .zone-panel .snowfall .forecast { background: none; padding: 0; border-radius: 0; }
.snowfall__total.is-snowy { box-shadow: none; }
.snowfall__total.is-snowy dd { color: var(--brand); }
.wx-now .hero-answer__source { text-align: left; margin-top: 0.6rem; }

/* --- The rest of the site: the same cards, tiles, fields and pop-ups --- */
.snow-board, .snowmaking-more, .my-card, .how-toc, .embed-preview,
.alerts-manage__resort, .alerts-manage__units, .alerts-page__notice, .state-table__scroll {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem 1.2rem;
}
.alerts-page__notice { padding: 0.75rem 1rem; }
.state-table__scroll { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.state-table tbody tr:last-child th, .state-table tbody tr:last-child td { border-bottom: 0; }
/* Floated, a legend sits inside its card instead of across the top edge. */
.alerts-manage legend { float: left; width: 100%; padding: 0; margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 600; }
.alerts-manage legend ~ * { clear: both; }
.btn.alerts-manage__remove, .btn.my-card__remove { padding: 0; }
/* Tiles and fields inside a card */
:is(.snow-board, .snowmaking-more, .my-card, .how-toc, .alerts-form, .alerts-manage__resort, .alerts-manage__units, .wx-now, .snowfall, .outlook, .season, .resort-about) :is(.form-control.form-control, .form-select.form-select, .alerts-form, .btn.btn-outline-secondary) {
    --bs-btn-bg: var(--tile);
    --bs-btn-border-color: var(--tile);
    background-color: var(--tile);
    border-color: var(--tile);
}
.how-formula, .my-card__days li { background: var(--tile); border: 0; border-radius: var(--radius-sm); }
.how-body .how-formula { background: var(--surface); }
.my-card__days li { border-radius: 6px; }
.compare-map { border: 0; border-radius: var(--radius); overflow: hidden; }
.compare-days td.is-best { border-radius: 6px; }
.hero-alert { border-radius: var(--radius-sm); }
.board-switch { display: inline-flex; padding: 2px; border-radius: var(--radius-sm); background: var(--surface); }
.board-switch a { border-radius: 6px; }
.board-switch a[aria-current="page"] { background: var(--tile); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.snow-board .seg-toggle { background: var(--tile); }
.snow-board .seg-toggle button[aria-pressed="true"] { background: var(--surface); }
.watch-filter .saved__chip[aria-pressed="true"] { background: var(--brand); color: #fff; }
/* Pop-ups: suggestions, tooltips, info tips, the How-this-works note, map panels and the phone menu */
.suggest, .forecast__tooltip, .info-tip__body, .hero-howto[open] .how-it-works-body { border: 0; border-radius: var(--radius-sm); }
.suggest { overflow: hidden; }
.map-legend, .map-hint, .map-mode { border: 0; border-radius: var(--radius-sm); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
@media (max-width: 991.98px) {
    .site-header__nav { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
}
/* Day strips: filled tiles on the page, a step lighter inside a card. */
.my-card__days li { background: var(--surface); }
:is(.my-card, .snow-board) .my-card__days li:not(.is-snowy) { background: var(--tile); }
/* A table inside a card is part of it, not a card of its own. */
:is(.snow-board, .snowmaking-more, .directory, .resort-about) .state-table__scroll { background: none; padding: 0; border-radius: 0; }

/* "How this works" note: solid, like the other pop-ups (ⓘ notes, chart tooltips, suggestions). */
.hero-howto[open] .how-it-works-body {
    background: var(--surface-raised);
    color: var(--bs-body-color);
    border: 1px solid var(--chart-grid);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Touch screens: easy targets, and 16px fields (iOS zooms the page in on anything smaller) --- */
@media (pointer: coarse), (max-width: 991.98px) {
    .form-control.form-control, .form-select.form-select, .embed-page .embed-code.embed-code { font-size: 1rem; }
    /* Links in lists get taller rows... */
    :is(.site-footer li, .resort-links, .how-toc) a { display: inline-block; padding-block: 0.4rem; }
    .site-footer ul, .how-toc ol, .resort-links.resort-links { row-gap: 0; }
    /* ...and standalone ones a bigger target in the same space. */
    :is(.crumbs, .section-title, .home__head, .home__more, .my-card__name, .alerts-manage legend, .state-table th) a { display: inline-block; }
    .saved__clear, .btn.alerts-manage__remove, .btn.my-card__remove { display: inline-block; }
    :is(.crumbs, .section-title, .home__head, .home__more, .my-card__name, .alerts-manage legend, .state-table th) a,
    :is(.hero-howto, .forecast__table) summary, .saved__clear { padding-block: 0.45rem; margin-block: -0.45rem; }
    .btn.alerts-manage__remove, .btn.my-card__remove { padding-block: 0.45rem; }
    :is(.alerts-manage__remove, .my-card__remove).btn { margin-block: 0.1rem 0; }
    .state-table :is(th, td) { padding-block: 0.6rem; }
    .alerts-option input:is([type="checkbox"], [type="radio"]) { width: 1.5rem; height: 1.5rem; flex: none; }
    .info-tip summary::after { content: ""; position: absolute; inset: -0.75rem; }
    .saved__chip, .directory__states a { padding-block: 0.4rem; }
    :is(.units-toggle, .seg-toggle) button, .board-switch a { min-height: 2.25rem; }
    .board-switch a { display: inline-flex; align-items: center; }
}

/* --- Phones and upright tablets --- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .split--outlook > .split__col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split--outlook > .split__col > :only-child { grid-column: 1 / -1; }
}
/* Maps leave room to scroll past them, on landscape phones too. */
@media (max-width: 991.98px) { .compare-map { max-height: 75svh; } }
@media (max-width: 767.98px) { .compare-map.compare-map { height: 300px; } }
@media (max-width: 575.98px) {
    .lookup .search.search :is(.form-control, .btn) { padding-inline: 0.8rem; }
    .alerts-form__row { flex-direction: column; }
    .embed-page .embed-code { min-height: 14rem; }
    /* Compare: three resorts fit; a fourth scrolls in beside row labels that stay put. */
    .compare-table { table-layout: auto; min-width: 100%; }
    .compare-table.compare-table :is(thead th:first-child, tbody th) { position: sticky; left: 0; z-index: 1; width: 5.6rem; min-width: 5.6rem; background: var(--surface); white-space: normal; }
    .compare-table.compare-table thead th { font-size: 0.7rem; }
    .compare-table td, .compare-table thead th:not(:first-child) { min-width: 4.4rem; padding-inline: 0.35rem; }
    .compare-table__note { display: block; }
    .compare-days .compare-table__note { font-size: 0.75rem; }
    /* Early season: every column fits, the total included. */
    .watch-table thead th { white-space: normal; vertical-align: bottom; }
    .watch-table__rank { width: 1.6rem; }
    .watch-table :is(th, td) { padding-right: 0.35rem; }
}
@media (max-width: 379.98px) {
    .map-hint { display: none; } /* no room beside the Key button */
    .trip-form__or { flex: 1 0 100%; padding: 0; }
    /* The rows are already in order, so the smallest phones drop the rank to fit the total. */
    .watch-table :is(th, td):first-child:not([scope="row"]) { display: none; }
}
