/* Mountain-journal presentation; scoped to the landing page below the hero. */
body.page-home {
    --landing-display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --landing-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --landing-orange: #f15a24;
    --landing-paper: #f2f3ef;
}
body.page-home .section.fade-in-on-scroll {
    opacity: 1;
    transform: none;
}

body.page-home #destinations,
body.page-home #season-openings,
body.page-home #science,
body.page-home #incoming-storms,
body.page-home #skiing-now,
body.page-home #today-decision,
body.page-home #powder-board { scroll-margin-top: 90px; }
/* Let the fixed search sheet compete with the mobile dock. */
body.page-home .hero-container { z-index: auto; }

.hero-opening-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--pf-blue); font-weight: 650; }
.hero-forecast-total { display: flex; align-items: baseline; gap: 0.65rem; margin: 0.4rem 0; font: 600 3.5rem var(--landing-display); color: var(--pf-blue); }
.hero-forecast-total span { font: 500 0.7rem var(--landing-mono); text-transform: uppercase; }
.forecast-hero .forecast-window { font-size: 0.7rem; }
body.page-home .season-openings { background: #e5e9e5; color: #101820; padding: clamp(3rem, 6vw, 6rem) 0; }
.opening-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2rem; }
.opening-heading h2 { margin: 0; font: 500 clamp(4rem, 9vw, 7rem)/0.9 var(--landing-display); text-transform: uppercase; letter-spacing: -0.02em; }
.opening-intro { max-width: 430px; justify-self: end; font-size: 1rem; line-height: 1.6; }
#opening-check-date { color: #42515c; font: 500 0.7rem/1.6 var(--landing-mono); }
.opening-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; border-bottom: 1px solid #a6b3b0; }
.opening-toolbar[hidden] { display: none; }
.opening-toolbar button { min-height: 44px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #42515c; padding: 0.6rem 0; font: 650 0.75rem var(--font-sans, sans-serif); cursor: pointer; }
.opening-toolbar button[aria-pressed='true'] { border-color: var(--landing-orange); color: #101820; }
.opening-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.opening-row { padding: 1.6rem 0; border-bottom: 1px solid #a6b3b0; }
.opening-row-top { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; font: 600 0.65rem var(--landing-mono); text-transform: uppercase; }
.opening-country { color: #42515c; }
.opening-status { color: #5e4730; }
.opening-status-open { color: #195c3e; }
.opening-status-open::before { content: ''; display: inline-block; width: 6px; height: 6px; background: currentColor; margin-right: 0.5rem; }
.opening-row h3 { margin: 0.65rem 0; font: 500 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--landing-display); text-transform: uppercase; }
.opening-row h3 a, .opening-list > p a { color: inherit; }
.opening-row p { margin: 0; max-width: 460px; color: #42515c; font-size: 0.8rem; line-height: 1.6; }
.opening-source { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: #101820; font-size: 0.75rem; font-weight: 650; }
.opening-source:hover, .opening-row h3 a:hover { color: #a3350d; }
.opening-footnote { max-width: 820px; margin-top: 1.5rem; font-size: 0.75rem; line-height: 1.7; color: #42515c; }
@media (max-width: 700px) {
    .opening-heading { grid-template-columns: 1fr; gap: 1.4rem; }
    .opening-intro { justify-self: start; }
    .opening-list { grid-template-columns: 1fr; }
    .opening-toolbar { gap: 0.3rem 1.2rem; }
}

body.page-home .region-links-section {
    padding: clamp(3rem, 5vw, 5rem) 0 3rem;
    background: var(--landing-paper);
    color: var(--pf-ink);
}

body.page-home .region-links-section > .container,
body.page-home .science-section > .container {
    max-width: 1320px;
}

.destination-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: 2.3rem;
}

.landing-eyebrow {
    display: block;
    margin-bottom: 1.1rem;
    color: #35404a;
    font: 500 0.68rem var(--landing-mono);
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.page-home .destination-heading .section-title,
body.page-home .science-story .section-title {
    margin: 0;
    color: inherit;
    font-family: var(--landing-display);
    font-size: clamp(4rem, 10vw, 8.6rem);
    text-transform: uppercase;
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.02em;
}

.destination-intro {
    max-width: 400px;
    justify-self: end;
    font-size: 1rem;
    line-height: 1.6;
    color: #536879;
}

.destination-field-note {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.6rem;
    background: var(--landing-orange);
    color: #101820;
    font: 650 0.65rem var(--landing-mono);
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.destination-intro #region-season-intro {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: #536879;
}

.destination-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.destination-toolbar[hidden] { display: none; }
.destination-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.destination-filters button {
    min-height: 44px;
    padding: 0.6rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #536879;
    font: 700 0.7rem var(--font-sans, sans-serif);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}
.destination-filters button[aria-pressed='true'] {
    background: transparent;
    border-color: var(--landing-orange);
    color: var(--pf-ink);
}
.destination-filters button:hover { color: var(--pf-ink); border-bottom-color: #a5abae; }
.destination-filters button[aria-pressed='true']:hover { background: transparent; border-bottom-color: var(--landing-orange); }
.destination-result-count { color: #536879; font: 500 0.67rem var(--landing-mono); white-space: nowrap; }

body.page-home .region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(190px, 18vw, 250px);
    grid-auto-flow: row dense;
    padding: 0;
    gap: 0.65rem;
}

body.page-home .region-card {
    position: relative;
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: #183040;
    backdrop-filter: none;
    color: #fff;
}
body.page-home .region-card[hidden] { display: none; }
body.page-home .region-grid:not([data-filtered='true']) [data-destination-feature='lead'] {
    grid-column: span 2;
    grid-row: span 2;
}
body.page-home .region-grid:not([data-filtered='true']) [data-destination-feature='wide'] {
    grid-column: span 2;
}
body.page-home .region-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 14, 23, 0.28), transparent 28%, rgba(4, 14, 23, 0.18) 45%, rgba(4, 14, 23, 0.92));
}
.destination-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.destination-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font: 500 0.63rem var(--landing-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 1px 5px #000;
}
.destination-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 0;
    background: var(--landing-paper);
    color: var(--pf-ink);
    font-size: 1.15rem;
    transition: color 180ms ease, background 180ms ease, transform 300ms ease;
}
.destination-copy { position: absolute; inset: auto 1.35rem 1.4rem; }
.destination-caption { display: block; margin-bottom: 0.5rem; font: 500 0.58rem var(--landing-mono); color: #e0ebf2; text-transform: uppercase; letter-spacing: 0.03em; }
body.page-home .region-name-label {
    margin: 0;
    font-family: var(--landing-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    text-transform: uppercase;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
body.page-home .region-grid:not([data-filtered='true']) [data-destination-feature='lead'] .region-name-label { font-size: clamp(3.5rem, 7vw, 6.5rem); }

.destination-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.35);
    color: #e0ebf2;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.destination-action > span { font-size: 1.1rem; transition: transform 300ms ease; }
body.page-home .region-card:hover { transform: none; background: #183040; }
.region-card:hover .destination-image, .region-card:focus-visible .destination-image { transform: scale(1.06); }
.region-card:hover .destination-arrow, .region-card:focus-visible .destination-arrow { background: var(--landing-orange); color: var(--pf-ink); transform: translate(2px, -2px); }
.region-card:hover .destination-action > span { transform: translateX(4px); }
.destination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--pf-line-light);
    color: #536879;
    font-size: 0.83rem;
}
.destination-footer strong { color: var(--pf-ink); font-weight: 650; }
.landing-text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 1.5rem; color: var(--pf-ink); font-weight: 700; text-decoration: none; }
.landing-text-link > span { font-size: 1.4rem; }
.landing-text-link { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; }

body.page-home .powder-board { padding: 5rem 0; }
body.page-home .spotlight-grid { grid-template-columns: minmax(0, 1fr); }
body.page-home .spotlight-card-loading { min-width: 0; overflow-wrap: anywhere; }
body.page-home .powder-board .section-title { font-family: var(--landing-display); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
body.page-home .powder-board-kicker { color: #ff9e6c; font-family: var(--landing-mono); letter-spacing: 0.04em; }
body.page-home .spotlight-error-state .error-icon { display: none; }
body.page-home .btn-error-retry { border-radius: 0; box-shadow: none; }
body.page-home .board-sort span { border: 0; background: transparent; padding: 0.4rem 0.5rem; }
body.page-home .spotlight-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pf-line-dark);
    border-radius: 0;
}
body.page-home .spotlight-card:hover { background: rgba(99, 201, 244, 0.04); box-shadow: none; transform: none; }
.board-mode { color: var(--pf-mist); font-size: 0.85rem; }
body.page-home .spotlight-card.spotlight-forecast { background-image: none; cursor: default; }
body.page-home .spotlight-card.spotlight-forecast::after { display: none; }
.forecast-resort-link { color: inherit; text-decoration: none; padding: 0.3rem 0; }
.forecast-resort-link:hover .spotlight-name { color: var(--pf-blue); }
.forecast-resort-link:focus-visible { outline: 2px solid var(--pf-blue); outline-offset: 4px; }
.forecast-details { grid-column: 3; padding-left: 2rem; }
.forecast-total { color: var(--pf-blue); font-size: 2.4rem; line-height: 1; text-align: right; }
.forecast-total span { display: block; margin-top: 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.forecast-window { margin: 0 0 0.7rem; color: var(--pf-snow); font-size: 0.85rem; }
.forecast-disclosure { color: var(--pf-mist); font-size: 0.8rem; }
.forecast-source { margin-top: 1rem; color: var(--pf-mist); font-size: 0.7rem; }
.forecast-source a { color: var(--pf-mist); }
.forecast-source span { display: block; margin-top: 0.3rem; }
body.page-home .spotlight-forecast .pf-card-actions { position: static; grid-column: 3; justify-self: end; margin-top: 1rem; }
@media (max-width: 900px) {
    .forecast-details { grid-column: 2; padding: 1rem 0 0; }
    body.page-home .spotlight-forecast .pf-card-actions { grid-column: 2; }
    body.page-home .spotlight-card.spotlight-forecast { grid-template-columns: 34px minmax(0, 1fr); padding-right: 1rem; }
}
body.page-home .spotlight-error-state {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--pf-line-dark);
    border-bottom: 1px solid var(--pf-line-dark);
    border-radius: 0;
    min-height: 180px;
    padding: 2rem;
}

body.page-home .science-section { padding: 0 0 6rem; background: var(--pf-night); border: 0; }
.science-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.science-story > * { min-width: 0; }
.science-photo { position: relative; aspect-ratio: 0.8; overflow: hidden; border-radius: 0; }
.science-photo::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(7, 12, 19, 0.7)); }
.science-photo img { width: 100%; height: 100%; object-fit: cover; }
.science-photo-caption { position: absolute; z-index: 1; bottom: 2rem; left: 2rem; font-family: var(--landing-display); font-size: 2.1rem; letter-spacing: 0; text-transform: uppercase; }
.science-story-copy .landing-eyebrow { color: #ff9e6c; }
body.page-home .science-story .section-title { font-size: clamp(3.2rem, 5.5vw, 5rem); }
body.page-home .science-story .section-intro { margin: 1.5rem 0 2rem; color: var(--pf-mist); font-size: 0.93rem; text-align: left; line-height: 1.7; }
body.page-home .science-grid { display: block; }
body.page-home .science-card {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    column-gap: 0.75rem;
    padding: 1.15rem 0;
    border: 0;
    border-top: 1px solid var(--pf-line-dark);
    border-radius: 0;
    background: transparent;
}
body.page-home .science-number { color: #ff9e6c; grid-row: span 2; font: 500 0.8rem var(--font-sans); margin: 0.2rem 0 0; }
body.page-home .science-title { margin: 0 0 0.4rem; color: var(--pf-snow); font-family: var(--font-sans); font-size: 1rem; font-weight: 650; }
body.page-home .science-description { margin: 0; color: var(--pf-mist); font-size: 0.78rem; line-height: 1.65; }

body.page-home .cta-section {
    position: relative;
    padding: clamp(5rem, 10vw, 10rem) 0;
    background: linear-gradient(90deg, rgba(7, 12, 19, 0.76), rgba(7, 12, 19, 0.22)), url('/static/images/heroes/bc-whistler.jpg') center 45% / cover;
}
body.page-home .cta-content { max-width: 820px; padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.page-home .cta-title { color: #fff; font-family: var(--landing-display); font-size: clamp(4rem, 10vw, 9rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
body.page-home .cta-subtitle { color: #e0ebf2; font-size: 1rem; margin-top: 1.5rem; }
body.page-home .btn-cta { background: var(--landing-orange); border-color: var(--landing-orange); color: #111820; border-radius: 0; letter-spacing: 0.04em; text-transform: uppercase; }
body.page-home .btn-cta:hover { background: #ff874d; border-color: #ff874d; }
.landing-account-button { min-height: 50px; padding: 0.8rem 0; background: transparent; color: #fff; border: 0; border-bottom: 1px solid #fff; font: 650 0.8rem var(--font-sans); cursor: pointer; }
.landing-account-button:hover { border-bottom-color: var(--landing-orange); }
.landing-account-button:focus-visible { outline: 3px solid var(--landing-orange); outline-offset: 4px; }
body.page-home .footer-logo .logo-script,
body.page-home .footer-logo .logo-finder { font-family: var(--landing-display); font-style: normal; text-transform: uppercase; }

.destination-filters button:focus-visible, .region-card:focus-visible, .landing-text-link:focus-visible { outline: 3px solid var(--landing-orange); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
    .landing-reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms); }
    .landing-reveal-ready.landing-revealed { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    body.page-home .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .destination-result-count { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .destination-copy { inset: auto 1rem 1.2rem; }
}

@media (max-width: 768px) {
    .destination-heading { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.8rem; }
    .destination-intro { justify-self: start; max-width: 440px; font-size: 0.9rem; }
    body.page-home .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 46vw, 260px); gap: 0.5rem; }
    body.page-home .region-grid:not([data-filtered='true']) [data-destination-feature='lead'] { grid-row: span 1; }
    body.page-home .destination-heading .section-title { font-size: clamp(4rem, 18vw, 6.5rem); }
    body.page-home .region-name-label { font-size: clamp(1.25rem, 4.8vw, 2rem); overflow-wrap: anywhere; }
    .destination-caption { display: none; }
    .destination-tag { top: 0.7rem; left: 0.65rem; font-size: 0.57rem; padding: 0; }
    .destination-arrow { top: 0.65rem; right: 0.65rem; width: 28px; height: 28px; font-size: 1rem; }
    .destination-copy { inset: auto 0.9rem 1rem; }
    .destination-action { font-size: 0.52rem; letter-spacing: 0.06em; margin-top: 0.6rem; }
    .destination-filters button { font-size: 0.63rem; padding: 0.6rem 0; }
    .destination-footer { align-items: start; flex-direction: column; gap: 0.6rem; }
    .science-story { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .science-photo { aspect-ratio: 1.1; }
    body.page-home .science-story .section-title { font-size: clamp(2.4rem, 9vw, 3.2rem); overflow-wrap: anywhere; }
    body.page-home .science-section { padding-bottom: 4rem; }
    body.page-home .powder-board { padding: 4rem 0; }
}

.incoming-storms .pf-card-actions,
.skiing-now .pf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
}
.incoming-storms .pf-card-actions a,
.today-decision a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--pf-blue);
}
.forecast-status { margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.today-decision { padding: 2rem 0 3rem; }
.today-decision .section-title { font-size: clamp(2rem, 4vw, 3rem); }
[data-theme="light"] body.page-home .incoming-storms,
[data-theme="light"] body.page-home .skiing-now,
[data-theme="light"] body.page-home .today-decision {
    background: #f4f7fa;
    color: #14232e;
}
[data-theme="light"] body.page-home .incoming-storms .section-title,
[data-theme="light"] body.page-home .skiing-now .section-title,
[data-theme="light"] body.page-home .today-decision .section-title,
[data-theme="light"] body.page-home .forecast-window,
[data-theme="light"] body.page-home .spotlight-name {
    color: #14232e;
}
[data-theme="light"] body.page-home .board-mode,
[data-theme="light"] body.page-home .forecast-disclosure,
[data-theme="light"] body.page-home .forecast-source {
    color: #526778;
}
@media (prefers-color-scheme: light) {
    [data-theme="system"] body.page-home .incoming-storms,
    [data-theme="system"] body.page-home .skiing-now,
    [data-theme="system"] body.page-home .today-decision {
        background: #f4f7fa;
        color: #14232e;
    }
    [data-theme="system"] body.page-home .incoming-storms .section-title,
    [data-theme="system"] body.page-home .skiing-now .section-title,
    [data-theme="system"] body.page-home .today-decision .section-title,
    [data-theme="system"] body.page-home .forecast-window,
    [data-theme="system"] body.page-home .spotlight-name { color: #14232e; }
    [data-theme="system"] body.page-home .board-mode,
    [data-theme="system"] body.page-home .forecast-disclosure,
    [data-theme="system"] body.page-home .forecast-source { color: #526778; }
}
@media (max-width: 700px) {
    .incoming-storms .spotlight-card.spotlight-forecast,
    .skiing-now .spotlight-card { padding-right: 0; }
    .incoming-storms .pf-card-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.page-home) { scroll-behavior: auto; }
    body.page-home *, body.page-home *::before, body.page-home *::after { animation: none !important; transition: none !important; }
    body.page-home .snowfall { display: none; }
    body.page-home .region-card, .destination-image, .destination-arrow, .destination-action > span, .destination-filters button { transition: none; }
    .landing-reveal-ready { opacity: 1; transform: none; }
    .region-card:hover .destination-image, .region-card:focus-visible .destination-image { transform: none; }
}
