/* Trail Outlook feature page (/about/features/trail_outlook/), on top of about-mapping-tools.css. Scoped under body.trail-outlook (pageClass). */

body.trail-outlook {
    --to-on-dark: rgba(255, 255, 255, .76);
}

.trail-outlook ::selection { background: var(--mt-yellow); color: var(--mt-deep); }
.trail-outlook a:focus-visible,
.trail-outlook summary:focus-visible { outline: 3px solid var(--mt-green); outline-offset: 3px; border-radius: 4px; }
.trail-outlook .to-hero a:focus-visible,
.trail-outlook .mt-final a:focus-visible { outline-color: var(--mt-yellow); }
.trail-outlook .to-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.trail-outlook .to-head { max-width: 720px; margin: 0 0 40px; }
.trail-outlook .to-head h2 { margin-top: 0; }
.trail-outlook .to-head p { margin: 0; color: var(--mt-muted); font-size: 18px; }

/* Hero: the photo takes the right half, in colour */
.trail-outlook .to-hero { position: relative; overflow: hidden; background: var(--mt-deep); color: #ffffff; }
.trail-outlook .to-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; left: max(45%, calc(50% - 64px)); }
.trail-outlook .to-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; animation: to-settle 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.trail-outlook .to-hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mt-deep), rgba(12, 26, 11, 0) 40px), linear-gradient(0deg, rgba(12, 26, 11, .35), rgba(12, 26, 11, 0) 30%); pointer-events: none; }
.trail-outlook .to-hero__inner { position: relative; display: flex; align-items: center; min-height: 620px; padding-top: 72px; padding-bottom: 72px; box-sizing: border-box; }
.trail-outlook .to-hero__copy { width: calc(50% - 24px); padding-right: 40px; box-sizing: border-box; }
.trail-outlook .to-hero__title { margin: 0 0 22px; font-size: clamp(2.4rem, 3.6vw, 3.35rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; color: #ffffff; text-transform: none; text-wrap: balance; }
.trail-outlook .to-hero__title span { display: block; margin-top: 16px; font-size: 1.25rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--mt-yellow); text-wrap: pretty; }
.trail-outlook .to-hero__lead { max-width: 52ch; margin: 0; font-size: 17px; line-height: 1.6; color: var(--to-on-dark); }
@keyframes to-settle {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
}

/* The problem in one sentence, under the hero */
.trail-outlook .to-lede { padding: 96px 0 8px; }
.trail-outlook .to-problem { max-width: 46ch; margin: 0; font-size: 1.4rem !important; line-height: 1.5 !important; color: var(--mt-ink); }
.trail-outlook .to-problem b { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--mt-muted); }

/* How it works: rows of title + text */
.trail-outlook .to-rows { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.trail-outlook .to-rows li { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 4px 24px; border-top: 1px solid #d4d9d1; }
.trail-outlook .to-rows__title { color: var(--mt-ink); font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 800; line-height: 1.3; }
.trail-outlook .to-rows__lead { margin-top: 6px; color: var(--mt-muted); font-size: 15px; line-height: 1.55; }

/* Feature rows: copy beside a screenshot */
.trail-outlook .to-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.trail-outlook .to-feature + .to-feature { margin-top: 128px; }
.trail-outlook .to-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.trail-outlook .to-feature--flip .to-feature__copy { order: 2; }
.trail-outlook .to-feature h3 { margin: 0 0 14px; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.15; text-wrap: balance; }
.trail-outlook .to-feature__copy > p { margin: 0; max-width: 52ch; color: var(--mt-muted); font-size: 17px !important; line-height: 1.6 !important; }
.trail-outlook .to-checks { margin: 24px 0 0; padding: 0; list-style: none; }
.trail-outlook .to-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 7px 0; font-size: 15px !important; line-height: 1.55 !important; }
.trail-outlook .to-checks .to-i { width: 20px; height: 20px; margin-top: 2px; color: var(--mt-green); stroke-width: 2.4; }
.trail-outlook .to-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--mt-green) !important; text-decoration: none !important; }
.trail-outlook .to-more .to-i { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.trail-outlook .to-more:hover .to-i { transform: translateX(4px); }
.trail-outlook .to-shot { margin: 0; }
.trail-outlook .to-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(12, 26, 11, .14); border-radius: 12px; background: #ffffff; box-shadow: 0 28px 56px -28px rgba(12, 26, 11, .42), 0 2px 6px rgba(12, 26, 11, .06); }
.trail-outlook .to-shot--phone { max-width: 400px; margin: 0 auto; }
.trail-outlook .to-shot--phone img { border-radius: 22px; }

/* Photo band: the sock photo on the right half, the line beside it */
.trail-outlook .to-band { position: relative; display: flex; align-items: center; min-height: 560px; overflow: hidden; background: var(--mt-deep); color: #ffffff; }
.trail-outlook .to-band img { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.trail-outlook .to-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mt-deep) 50%, rgba(12, 26, 11, 0) calc(50% + 120px)); }
.trail-outlook .to-band .section-container { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 72px; box-sizing: border-box; }
.trail-outlook .to-band p { max-width: calc(50% - 32px); margin: 0; font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 3.6vw, 3rem) !important; font-weight: 800; line-height: 1.1 !important; letter-spacing: -0.025em; text-wrap: balance; }
.trail-outlook .to-band p span { color: var(--mt-yellow); }

/* responsive.css clips headings with an ellipsis up to 980px */
@media screen and (max-width: 980px) {
    .trail-outlook h1,
    .trail-outlook h2,
    .trail-outlook h3 { white-space: normal; overflow: visible; }
    .trail-outlook .to-hero__photo { position: relative; left: auto; aspect-ratio: 3 / 2; }
    .trail-outlook .to-hero__photo::after { background: linear-gradient(0deg, var(--mt-deep), rgba(12, 26, 11, 0) 28%); }
    .trail-outlook .to-hero__inner { min-height: 0; padding-top: 8px; padding-bottom: 56px; }
    .trail-outlook .to-hero__copy { width: auto; padding-right: 0; }
    .trail-outlook .to-rows { grid-template-columns: 1fr; }
    .trail-outlook .to-feature,
    .trail-outlook .to-feature--flip { grid-template-columns: 1fr; gap: 36px; }
    .trail-outlook .to-feature--flip .to-feature__copy { order: 0; }
    .trail-outlook .to-feature + .to-feature { margin-top: 88px; }
    .trail-outlook .to-band { align-items: flex-end; }
    .trail-outlook .to-band img { left: 0; width: 100%; }
    .trail-outlook .to-band::after { background: linear-gradient(0deg, rgba(12, 26, 11, .9), rgba(12, 26, 11, 0) 64%); }
    .trail-outlook .to-band p { max-width: 24ch; }
}

@media screen and (max-width: 768px) {
    .trail-outlook .to-hero__title span { font-size: 1.1rem; }
    .trail-outlook .to-hero__lead { font-size: 16px !important; }
    .trail-outlook .to-problem { font-size: 1.2rem !important; }
    .trail-outlook .to-lede { padding-top: 64px; }
    .trail-outlook .to-band { min-height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
    .trail-outlook .to-hero__photo img { animation: none; }
    .trail-outlook .to-more .to-i { transition: none; }
}

/* the closing section's contour drawing as a 46 KB WebP with 4 alpha levels (the shared PNG is 168 KB) */
.trail-outlook .mt-final::before { background-image: url(../../i/trailforks/about/features/trail_outlook/contour.webp); }
