@font-face{font-family:Barlow;font-style:normal;font-weight:400;font-display:swap;src:url("fonts/Barlow-Regular.woff2") format("woff2")}
@font-face{font-family:Barlow;font-style:normal;font-weight:600;font-display:swap;src:url("fonts/Barlow-SemiBold.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2")}
/* ChartQuest field guides. One shared visual system for every guide page.
   Candles come from scripts/build_guide_charts.py, which mirrors the ratified
   Visual Market Constitution; this stylesheet owns only page layout/type. */
:root{color-scheme:dark;--bg:#060910;--panel:#0c131e;--panel-2:#111a27;--ink:#eaf2fb;--dim:#9ab0c6;--line:rgba(120,170,215,.23);--green:#16c784;--red:#ea3943;--gold:#ffd60a;--orange:#f0862c;--display:"Barlow Condensed","Arial Narrow",Impact,sans-serif;--sans:"Barlow",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:18px/1.45 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.skip{position:absolute;left:-9999px;top:8px;z-index:20;padding:8px 14px;background:var(--gold);color:#17150b}
.skip:focus{left:12px}
.guide-header{border-bottom:1px solid var(--line);background:#0b111a}
.guide-nav{max-width:1160px;margin:auto;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.guide-logo{display:block;width:184px;height:auto}
.guide-nav-links{display:flex;align-items:center;gap:24px;font-size:15px;font-weight:700}
.guide-nav-links a{text-decoration:none}
.guide-nav-links a:hover,.guide-footer a:hover{color:var(--gold)}
.guide-nav-links .play-link,.play-button{border-radius:11px;background:linear-gradient(180deg,#ffe14d,var(--gold));color:#231b00;padding:11px 19px;text-decoration:none;font-weight:800;box-shadow:0 12px 32px rgba(255,214,10,.15)}
.guide-nav-links .play-link:hover,.play-button:hover{color:#231b00;filter:brightness(1.08)}
.guide-main{max-width:1060px;margin:auto;padding:0 24px 72px}
.guide-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:10px;min-height:430px;margin:28px 0 32px;padding:35px 40px;border:1px solid var(--line);border-radius:28px;background:radial-gradient(circle at 78% 55%,rgba(240,134,44,.27),transparent 31%),radial-gradient(circle at 55% 100%,rgba(22,199,132,.13),transparent 42%),#0c131e}
.guide-hero:before{content:"";position:absolute;inset:0;opacity:.13;pointer-events:none;background-image:linear-gradient(rgba(154,176,198,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(154,176,198,.18) 1px,transparent 1px);background-size:48px 48px}
.guide-hero-copy,.guide-hero-art{position:relative;z-index:1}
.guide-kicker{margin:0 0 14px;color:var(--gold);font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.guide-hero h1{font:800 clamp(53px,7vw,88px)/.91 var(--display);letter-spacing:.005em;text-transform:uppercase;margin:0;max-width:10ch}
.guide-hero p:last-child{font-size:clamp(19px,2.2vw,24px);font-weight:600;color:var(--dim);max-width:26ch;margin:20px 0 0}
.guide-hero-art{display:flex;align-items:center;justify-content:center;height:100%}
.guide-hero-art::before{content:"";position:absolute;inset:17% 4%;border-radius:50%;background:radial-gradient(circle,rgba(240,134,44,.16),rgba(22,199,132,.06) 50%,transparent 72%);filter:blur(15px);pointer-events:none}
.guide-hero-art picture{display:block;position:relative;top:-10px;left:-10px;width:min(100%,470px);transform-origin:50% 75%;animation:guideFinnFloat 6.8s ease-in-out infinite}
.guide-hero-art img{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 26px rgba(0,0,0,.42))}
@keyframes guideFinnFloat{0%,100%{transform:perspective(700px) translateY(0) rotate(-.4deg) rotateY(0)}42%{transform:perspective(700px) translateY(-9px) rotate(.5deg) rotateY(0)}60%,68%{transform:perspective(700px) translateY(-6px) rotate(.1deg) rotateY(-8deg)}80%{transform:perspective(700px) translateY(-3px) rotate(-.2deg) rotateY(0)}}
.guide-step{margin:28px 0;padding:clamp(20px,4vw,35px);border:1px solid var(--line);border-radius:24px;background:linear-gradient(160deg,var(--panel-2),var(--panel));overflow:hidden}
.guide-step-head{display:flex;gap:14px;align-items:center;justify-content:center;margin-bottom:18px;text-align:center}
.step-number{flex:0 0 36px;height:36px;display:grid;place-items:center;border:1px solid rgba(255,214,10,.38);border-radius:9px;color:var(--gold);font:800 20px/1 var(--display)}
.guide-step h2,.guide-challenge h2,.guide-cta h2{font:800 clamp(31px,4.3vw,47px)/1 var(--display);letter-spacing:.005em;text-transform:uppercase;margin:0}
.guide-step .one-line{font-size:clamp(17px,2vw,21px);font-weight:600;color:var(--dim);margin:0 auto 21px;max-width:44ch;text-align:center;text-wrap:pretty}
.guide-graphic{background:#0a0e14;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.guide-graphic img{display:block;max-width:100%;height:auto;margin:auto}
.guide-graphic.anatomy img{width:min(100%,650px)}
.direction-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.direction-card{margin:0;min-width:0;border:1px solid var(--line);border-radius:16px;background:#0a0e14;overflow:hidden;text-align:center}
.direction-card img{display:block;width:min(100%,260px);height:auto;margin:auto}
.direction-card figcaption{padding:0 10px 18px;font:800 clamp(20px,3vw,27px)/1 var(--display);text-transform:uppercase}
.direction-card.up figcaption{color:var(--green)}
.direction-card.down figcaption{color:var(--red)}
.chart-graphic{position:relative}
.chart-graphic img.chart{width:100%;max-width:640px}
.chart-graphic img.finn{position:absolute;right:2%;bottom:4%;width:clamp(62px,12%,110px);height:auto;filter:drop-shadow(0 5px 8px #000)}
.guide-challenge{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:30px 0;padding:27px 33px;border:1px solid rgba(255,214,10,.36);border-radius:19px;background:linear-gradient(105deg,rgba(255,214,10,.1),rgba(22,199,132,.05))}
.guide-challenge h2{font-size:31px;max-width:14ch}
.guide-challenge details{flex:0 0 auto;min-width:148px}
.guide-challenge summary{cursor:pointer;list-style:none;border:1px solid var(--gold);border-radius:10px;padding:10px 15px;color:var(--gold);font-weight:800;text-align:center}
.guide-challenge summary::-webkit-details-marker{display:none}
.guide-challenge details p{max-width:20ch;margin:11px 0 0;color:var(--ink);font-size:16px}
.guide-cta{margin-top:32px;padding:35px;border:1px solid rgba(22,199,132,.4);border-radius:24px;background:radial-gradient(circle at 92% 50%,rgba(22,199,132,.19),transparent 34%),#0e191a;display:flex;align-items:center;justify-content:space-between;gap:22px}
.play-button{display:inline-block;white-space:nowrap}.play-button[hidden]{display:none}
.play-button-brand{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:12px 18px;border:2px solid var(--orange);background:linear-gradient(160deg,#20352b,#0a111a);color:var(--ink);box-shadow:0 8px 26px rgba(240,134,44,.14);max-width:100%;flex-shrink:0}
.play-button-brand span{font:800 38px/1 var(--display);text-transform:uppercase;color:var(--ink);text-shadow:1px 1px 0 var(--orange),-1px -1px 0 #111}
.play-button-brand img{display:block;width:190px;height:auto}
.play-button-brand:hover{color:var(--ink);border-color:var(--green);box-shadow:0 8px 26px rgba(22,199,132,.2)}
@media(max-width:700px){.guide-hero-copy{text-align:center}.guide-hero h1,.guide-hero p:last-child{margin-left:auto;margin-right:auto}.guide-hero-art picture{left:0}.guide-cta{text-align:center}.play-button-brand{padding:10px 12px;gap:10px}.play-button-brand span{font-size:32px}.play-button-brand img{width:140px}}
.guide-footer{border-top:1px solid var(--line);padding:25px 24px 35px;color:var(--dim);font-size:14px}
.guide-footer-inner{max-width:1060px;margin:auto;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.guide-footer a{margin-left:18px;text-decoration:none}
@media(max-width:700px){.guide-main{padding:0 16px 50px}.guide-nav{padding:10px 16px}.guide-logo{width:155px}.guide-nav-links .play-link{padding:9px 14px}.guide-hero{grid-template-columns:1fr;margin-top:16px;padding:25px 24px 0;min-height:0}.guide-hero h1{font-size:clamp(50px,12vw,72px)}.guide-hero p:last-child{margin-top:12px;max-width:30ch}.guide-hero-art picture{top:0;left:0;width:min(90%,350px)}.guide-step{margin:16px 0;padding:18px}.guide-step-head{margin-bottom:13px}.direction-grid{gap:9px}.direction-card figcaption{font-size:21px;padding:0 6px 13px}.guide-challenge,.guide-cta{padding:21px;display:block}.guide-challenge details{margin-top:16px;max-width:170px}.guide-cta .play-button{margin-top:19px}}
@media(max-width:370px){.guide-logo{width:138px}.guide-nav-links{font-size:13px}.guide-hero h1{font-size:48px}.direction-card figcaption{font-size:18px}}
@media(prefers-reduced-motion:reduce){.guide-hero-art picture{animation:none}}
.guide-breadcrumb{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px;font-size:14px;color:var(--dim)}
.guide-breadcrumb a{text-decoration:none}
.guide-breadcrumb a:hover,.lesson-link:hover{color:var(--gold)}
.guide-intro{max-width:54ch;color:var(--dim);font-size:18px;margin:0 auto 30px;text-align:center;text-wrap:pretty}
.lesson-graphic img{width:100%;max-width:400px}
.lesson-link{display:block;width:fit-content;max-width:100%;margin:18px auto 0;font-weight:700;text-decoration:none;color:var(--gold);text-align:center}
.guide-next{margin-top:32px;padding:24px 0;border-top:1px solid var(--line)}
.guide-next h2{font:800 28px/1 var(--display);margin:0 0 17px;text-transform:uppercase}
.guide-next>div{display:flex;gap:10px;flex-wrap:wrap}
.guide-next a{padding:12px 17px;background:var(--panel);border:1px solid var(--line);border-radius:10px;text-decoration:none;font-weight:600;font-size:16px}
.guide-next a:hover{border-color:var(--green);color:var(--green)}
.guide-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}
.guide-library a{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,var(--panel-2),var(--panel));text-decoration:none;min-height:170px}
.guide-library strong{font:800 31px/1.06 var(--display);text-transform:uppercase;text-wrap:balance}
.guide-library span{font-size:17px;color:var(--dim)}
.guide-library a:hover{border-color:var(--green);box-shadow:0 8px 24px rgba(22,199,132,.08)}
@media(max-width:700px){.guide-library{grid-template-columns:1fr}.guide-library a{min-height:0;padding:20px}.guide-library strong{font-size:28px}}
.guide-source{color:var(--dim);font-size:13px;line-height:1.6;max-width:65ch}
.guide-source a{color:var(--dim)}
.guide-reveal{border:1px solid var(--line);border-radius:16px;background:#0a0e14;padding:20px}
.guide-reveal summary{cursor:pointer;display:list-item;color:var(--gold);font-weight:700;padding:10px 5px}
.guide-reveal img{display:block;width:100%;max-width:400px;height:auto;margin:20px auto 0}
.guide-reveal p{max-width:50ch;color:var(--dim);margin:16px auto 0}
@media(max-width:700px){.guide-intro{font-size:17px}.guide-next a{font-size:15px}.guide-step h2{font-size:30px}.guide-challenge h2{max-width:100%}.guide-reveal{padding:12px}}
