:root { --night: #040a0c; --moss: #183328; --cream: #f7f0dd; --paper: #e9dfc5; --gold: #e3b96c; --muted: #607064; --line: rgba(24, 51, 40, .18); font-family: 'DM Sans', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--moss); background: var(--cream); }
a { color: inherit; }
.tool-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.tool-hero { position: relative; z-index: 1; padding: 5.5rem 0 4rem; color: var(--cream); text-align: center; }
.tool-kicker { color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero h1, .panel h2, .content h2, .content h3, .mw-main .journey .journey-title { font-family: 'Cormorant Garamond', serif; }
.tool-hero h1 { max-width: 850px; margin: .55rem auto 1.25rem; font-size: clamp(3.4rem, 8vw, 6.4rem); font-weight: 400; line-height: .85; letter-spacing: -.045em; }
.tool-lead { max-width: 700px; margin: 0 auto; color: #d6ddce; font-size: 1.05rem; line-height: 1.7; }
.byline { margin-top: 1.25rem; color: #b9c4b4; font-size: .85rem; }
.byline a, .content a { color: #956b25; text-underline-offset: .18em; }
.calculator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0 auto 5rem; }
.panel { padding: clamp(1.35rem, 4vw, 2.35rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fffdf7; box-shadow: 0 1.25rem 2.8rem rgba(4, 10, 12, .12); }
.panel h2 { margin: 0 0 1rem; font-size: 2rem; line-height: 1; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.field { display: grid; gap: .45rem; }
.field--steps { grid-column: 1 / -1; }
.distance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .6rem; margin-top: .25rem; }
.field label { font-weight: 700; }
.field small { color: #566356; font-size: .84rem; line-height: 1.45; }
.field input { width: 100%; min-height: 3.2rem; padding: .75rem .85rem; border: 1px solid #b8c1af; border-radius: .65rem; background: #fffdf7; color: var(--night); font: 600 1rem inherit; }
.field input:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-color: #956b25; }
.privacy-note { margin: 1rem 0 0; padding: .75rem .85rem; border-left: 3px solid var(--gold); background: #f1ead9; color: #405044; font-size: .83rem; line-height: 1.5; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.result-grid--challenge .result:last-child { grid-column: 1 / -1; }
.result { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #f7f0dd; }
.result-label { display: block; margin-bottom: .4rem; color: #566356; font-size: .78rem; }
.result strong { display: block; max-width: 100%; overflow-wrap: anywhere; font: 600 clamp(1.55rem, 4vw, 2.3rem)/1 'Cormorant Garamond', serif; }
.journey { position: relative; margin-top: 1.2rem; padding: 1.5rem; overflow: hidden; border-radius: 1rem; color: var(--cream); background: linear-gradient(120deg, #091411b8, #183328d9), url('/site-assets/home/atmosphere-v4.webp') center/cover; }
.mw-main .journey .journey-title { margin: 0 0 .25rem; color: var(--gold); font-size: 1.8rem; }
.mw-main .journey .journey-copy { margin: 0 0 1.5rem; color: #d8dfd1; font-size: .9rem; }
.trail { position: relative; height: .65rem; margin: 2rem .5rem .75rem; border-radius: 99px; background: #f7f0dd3b; }
.trail-progress { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d5a955, var(--gold)); transition: width .25s ease; }
.trail-marker { position: absolute; top: 50%; width: 1.55rem; height: 1.55rem; border: 3px solid var(--cream); border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); transition: left .25s ease; box-shadow: 0 .25rem .8rem #0008; }
.trail-labels { display: flex; justify-content: space-between; color: #d8dfd1; font-size: .75rem; }
.content { max-width: 780px; margin: 0 auto 5rem; font-size: 1.03rem; line-height: 1.75; }
.content h2 { margin-top: 3.4rem; font-size: clamp(2.3rem, 5vw, 3.15rem); line-height: .95; }
.content h3 { margin-top: 2rem; font-size: 1.8rem; }
.formula { padding: 1.15rem 1.3rem; border-left: 3px solid var(--gold); background: var(--paper); font-weight: 700; }
.source-note { padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: #fffdf7; font-size: .88rem; }
.tool-cta { margin-top: 3.25rem; padding: clamp(1.8rem, 5vw, 3.5rem); border-radius: 1.25rem; background: linear-gradient(#040a0ca8, #040a0ca8), url('/site-assets/home/atmosphere-v4.webp') center/cover; color: var(--cream); text-align: center; }
.tool-cta h2 { margin: 0 0 .5rem; color: var(--cream); }.tool-cta p { max-width: 600px; margin: auto; color: #d8dfd1; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; }.button.secondary { background: var(--cream); }
.mw-footer { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:1.25rem; }.mw-footer > .mw-brand { display:inline-flex; align-items:center; gap:.65rem; margin:0; color:var(--cream)!important; font:600 1.75rem/1 'Cormorant Garamond',serif; white-space:nowrap; }.mw-footer > .mw-brand img { width:40px; height:40px; flex:0 0 40px; }.mw-footer > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.45rem 1rem; margin:0; }.mw-footer > p { grid-column:1/-1; margin:0; color:#899286; font-size:.72rem; }
@media (max-width: 760px) { .tool-hero { padding: 3rem 0 2.75rem; } .calculator { grid-template-columns:1fr; margin-bottom:3.5rem; } .mw-footer { grid-template-columns:1fr; gap:1rem; } .mw-footer > div { justify-content:flex-start; } }
@media (max-width: 430px) { .tool-shell { width: min(100% - 22px, 1120px); } .field-grid { grid-template-columns: 1fr; } .cta-row .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .trail-progress, .trail-marker { transition: none; } }
.tool-answer { margin-bottom: 1rem; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.steps-table { border-collapse: collapse; font-size: .95rem; }
.steps-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.steps-table th, .steps-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.preset-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.preset-btn { padding: .38rem .72rem; border: 1px solid #b8c1af; border-radius: 999px; background: #f7f0dd; color: var(--moss); font: 600 .84rem inherit; cursor: pointer; }
.preset-btn:hover, .preset-btn[aria-pressed="true"] { border-color: #956b25; background: var(--gold); color: var(--night); }
.field select { width: 100%; min-height: 3.2rem; padding: .75rem .85rem; border: 1px solid #b8c1af; border-radius: .65rem; background: #fffdf7; color: var(--night); font: 600 1rem inherit; }
.mode-tabs { display: inline-flex; gap: .35rem; margin-bottom: 1rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: #f7f0dd; }
.mode-tab { padding: .42rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--moss); font: 600 .86rem inherit; cursor: pointer; }
.mode-tab[aria-pressed="true"] { background: var(--moss); color: var(--cream); }
.journey-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid #f7f0dd2e; }
.journey-cta p { margin: 0; color: #eef2e7; font-size: .88rem; line-height: 1.45; max-width: 36ch; }
.journey-cta-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.journey-cta-links .button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .88rem; }
.tool-links-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 0; }
.tool-links-bar a { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fffdf7; color: var(--moss); font-size: .88rem; font-weight: 600; text-decoration: none; }
.tool-links-bar a:hover { border-color: #956b25; background: #f7f0dd; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .85rem; margin: 1.5rem 0 2rem; }
.stat-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffdf7; }
.stat-card .stat-num { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 'Cormorant Garamond', serif; color: var(--moss); }
.stat-card .stat-lbl { display: block; margin-top: .35rem; color: #566356; font-size: .84rem; line-height: 1.4; }
.chart-box { margin: 1.75rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffdf7; }
.chart-box figcaption { margin-top: .65rem; color: #566356; font-size: .84rem; }
.chart-box svg { display: block; width: 100%; height: auto; }
