/* Trail Mapping Tools feature page (/about/features/trail_mapping_tools/), scoped under body.mapping-tools set via pageClass */
@import url(https://fonts.googleapis.com/css?family=Montserrat:600,700,800,900&display=swap);

body.mapping-tools {
    --mt-deep: #0c1a0b;
    --mt-green: #366b2d;
    --mt-yellow: #ffd100;
    --mt-cyan: #22e4ff;
    --mt-red: #ff3b3b;
    --mt-ink: #1d211c;
    --mt-muted: #5c6459;
    --mt-line: #e3e7e1;
    --mt-radius: 16px;
    background-color: #ffffff;
}

.mapping-tools .mt-narrow { max-width: 860px; }
.mapping-tools .mt-section { padding: 88px 0; color: var(--mt-ink); }
.mapping-tools .mt-section h2,
.mapping-tools .mt-final h2 { font-size: 2.4rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 16px; text-transform: none; }
.mapping-tools .mt-section h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; text-transform: none; }
.mapping-tools .mt-section h2,
.mapping-tools .mt-section h3 { color: var(--mt-ink); }
.mapping-tools .mt-section--dark h2,
.mapping-tools .mt-section--dark h3,
.mapping-tools .mt-final h2 { color: #ffffff; }
.mapping-tools .mt-section p,
.mapping-tools .mt-section li { font-size: 16px; line-height: 1.65; }
.mapping-tools .mt-section a:not(.tf-card):not(.button1) { color: var(--mt-green); text-decoration: underline; text-underline-offset: 3px; }
.mapping-tools .mt-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.mapping-tools .mt-head p { color: var(--mt-muted); font-size: 18px; }

/* Hero: pre-darkened trail map behind the copy, editor screenshot beside it */
.mapping-tools .mt-hero { position: relative; overflow: hidden; color: #ffffff; background: var(--mt-deep) url(../../i/trailforks/about/features/mapping_tools/hero_map_bg.webp) center / cover no-repeat; }
.mapping-tools .mt-hero__inner { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.mapping-tools .mt-hero .tf-eyebrow { color: var(--mt-yellow); }
.mapping-tools .mt-hero__title { margin: 14px 0 18px; font-size: 3rem; font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; color: #ffffff; text-transform: none; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.mapping-tools .mt-hero__title span { display: block; margin-top: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--mt-yellow); }
.mapping-tools .mt-hero__lead { max-width: 640px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.mapping-tools .mt-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.mapping-tools .mt-stats { display: flex; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.mapping-tools .mt-stats li { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.mapping-tools .mt-stats b { display: block; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffffff; }
.mapping-tools .mt-stats span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* Text + screenshot split */
.mapping-tools .mt-split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.mapping-tools .mt-split--flip { grid-template-columns: 7fr 5fr; }
.mapping-tools .mt-split--flip .mt-split__text { order: 2; }
.mapping-tools .mt-split__text h3 { margin-top: 22px; }
.mapping-tools .mt-h3 { font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: -0.01em; }
.mapping-tools .mt-section--dark .tf-screenshot { margin-top: 48px; }

/* Data layers on a dark band */
.mapping-tools .mt-section--dark { background: var(--mt-deep); color: #ffffff; }
.mapping-tools .mt-section--dark .tf-eyebrow { color: var(--mt-yellow); }
.mapping-tools .mt-section--dark .mt-head p,
.mapping-tools .mt-section--dark .tf-screenshot figcaption { color: rgba(255, 255, 255, .72); }
.mapping-tools .mt-section--dark .mt-head a,
.mapping-tools .mt-section--dark .mt-layer a:not(.tf-chip) { color: var(--mt-yellow) !important; }
.mapping-tools .mt-layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mapping-tools .mt-layer { display: flex; flex-direction: column; padding: 22px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--mt-radius); background: rgba(255, 255, 255, .04); transition: border-color .25s ease, background-color .25s ease; }
.mapping-tools .mt-layer:hover { border-color: rgba(255, 209, 0, .45); background: rgba(255, 255, 255, .06); }
.mapping-tools .mt-layer p { flex: 1; margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 14px !important; }
.mapping-tools .mt-layer--heat { grid-column: span 2; border-color: rgba(255, 209, 0, .45); }
.mapping-tools .mt-section--dark b { color: #ffffff; }
.mapping-tools .mt-section--dark .tf-chip--green { background: rgba(120, 220, 110, .18); color: #9be58f; }
/* Pro chips are links to the Pro page, keep them looking like chips */
.mapping-tools a.tf-chip { text-decoration: none !important; color: #fec200 !important; }
.mapping-tools .mt-layer__access { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 12px; }
.mapping-tools .mt-swatch { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; white-space: nowrap; }
.mapping-tools .mt-swatch::before { content: ''; width: 18px; height: 4px; border-radius: 2px; background: currentColor; }
.mapping-tools .mt-swatch--cyan { color: var(--mt-cyan); }
.mapping-tools .mt-swatch--yellow { color: var(--mt-yellow); }
.mapping-tools .mt-swatch--red { color: var(--mt-red); }
.mapping-tools .mt-swatch--blue { color: #7aa4ff; }

/* Access table (.table1) */
.mapping-tools .mt-access { width: 100%; background: #ffffff; }
.mapping-tools .mt-access td,
.mapping-tools .mt-access th { padding: 12px 14px; }
.mapping-tools .mt-access td:not(:first-child),
.mapping-tools .mt-access th:not(:first-child) { text-align: center; }
.mapping-tools .mt-access td:first-child { font-weight: 600; }
.mapping-tools .mt-partial { color: var(--mt-muted); font-size: 13px; }

/* Closing CTA band */
/* negative margin tucks the band under the footer's mountain silhouette, as on the race course page */
.mapping-tools .mt-final { margin-bottom: -130px; padding: 90px 0 210px; text-align: center; color: #ffffff; background: var(--mt-deep); }
.mapping-tools .mt-final p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .8); font-size: 18px; line-height: 1.6; }
.mapping-tools .mt-final .mt-hero__cta { justify-content: center; }
.mapping-tools .mt-final__links { margin-top: 36px !important; font-size: 14px !important; }
.mapping-tools .mt-final__links a { color: var(--mt-yellow); }

/* Faint contour lines rising from the bottom right of the dark bands */
.mapping-tools .mt-section--dark,
.mapping-tools .mt-final { position: relative; overflow: hidden; isolation: isolate; }
.mapping-tools .mt-section--dark::before,
.mapping-tools .mt-final::before { content: ''; position: absolute; z-index: -1; right: -180px; bottom: -300px; width: 720px; height: 848px; background: url(../../i/trailforks/about/contour_background-topright-01.png) center / contain no-repeat; opacity: .06; pointer-events: none; }
/* the footer mountains overlap the last 130px of the closing band */
.mapping-tools .mt-final::before { bottom: -170px; }

/* Scroll reveal, only once JS has run so content never hides without it */
.mapping-tools .mt-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.mapping-tools.mt-js .mt-reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
    .mapping-tools .mt-reveal { transition: none; opacity: 1 !important; transform: none !important; }
}

@media screen and (max-width: 980px) {
    /* responsive.css clips h2/h3 with an ellipsis up to 980px */
    .mapping-tools .mt-section h2,
    .mapping-tools .mt-final h2,
    .mapping-tools .mt-section h3,
    .mapping-tools .mt-hero__title { white-space: normal; overflow: visible; }
    .mapping-tools .mt-hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
    .mapping-tools .mt-split,
    .mapping-tools .mt-split--flip { grid-template-columns: 1fr; gap: 28px; }
    .mapping-tools .mt-split--flip .mt-split__text { order: 0; }
    .mapping-tools .mt-layers { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .mapping-tools .mt-section { padding: 56px 0; }
    .mapping-tools .mt-section h2,
    .mapping-tools .mt-final h2 { font-size: 1.8rem; }
    .mapping-tools .mt-hero__title { font-size: 2.4rem; }
    .mapping-tools .mt-hero__title span { font-size: 1.15rem; }
    .mapping-tools .mt-hero__lead { font-size: 16px; }
    .mapping-tools .mt-hero__cta .button1 { width: 100%; box-sizing: border-box; }
    .mapping-tools .mt-stats { display: grid; grid-template-columns: 1fr 1fr; }
    .mapping-tools .mt-layers { grid-template-columns: 1fr; }
    .mapping-tools .mt-layer--heat { grid-column: auto; }
    .mapping-tools .mt-access .mt-partial { font-size: 12px; }
    .mapping-tools .mt-section--dark::before,
    .mapping-tools .mt-final::before { right: -140px; width: 420px; height: 495px; bottom: -160px; }
    .mapping-tools .mt-final::before { bottom: -40px; }
}
