/* Hedging 101 — site styles (matches the homepage visual system)
   Storm navy header, page heads and footer; fog-grey body; red for losses, sea-glass teal for what a hedge kept,
   amber for calls to action. Archivo for headlines, numbers and controls; Source Serif 4 for reading text.
   Layout: navy page head with title and lede, then a left-aligned reading column with wide blocks for tools. */
:root{
  --storm:#102A43; --storm-2:#16324F; --storm-3:#1F4266; --storm-rule:#2B4D70;
  --fog:#F3F5F7; --white:#FFFFFF; --navy-ink:#102A43; --ink-2:#486581; --mist:#9FB3C8; --cloud:#D9E2EC; --line:#E3E9EF;
  --red:#E8553E; --teal:#5CC8B0; --teal-ink:#1E8C76; --amber:#F2B544; --amber-hi:#F6C664;
  --sans:"Archivo","Helvetica Neue",Arial,sans-serif;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  /* chart + component tokens (light context); the simulator stage redefines them for its navy background */
  --paper:var(--fog); --surface:var(--white); --ink:var(--navy-ink); --muted:var(--ink-2); --rule:var(--cloud);
  --hedge:var(--teal-ink); --hedge-soft:rgba(92,200,176,.26); --loss:var(--red); --loss-soft:rgba(159,179,200,.28); --market:var(--red);
  --on-hedge:var(--storm);
  --font-display:var(--sans); --font-body:var(--sans);
  --measure:66ch; --wide:1180px;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fog);color:var(--navy-ink);font-family:var(--serif);font-size:18px;line-height:1.6}
img{max-width:100%}
a{color:var(--teal-ink);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--amber);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--sans);text-wrap:balance;margin:0;color:inherit}
h1{font-weight:780;font-stretch:118%;font-size:clamp(34px,4.6vw,58px);line-height:1.02;letter-spacing:-.025em}
h2{font-weight:750;font-stretch:115%;font-size:clamp(26px,3vw,38px);line-height:1.08;letter-spacing:-.02em}
h3{font-weight:700;font-stretch:110%;font-size:20px;line-height:1.25;letter-spacing:-.01em}
p{margin:0}
ul,ol{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:.4em}
b,strong{font-weight:650}
.tnum,.num{font-family:var(--sans);font-variant-numeric:tabular-nums lining-nums}
.muted{color:var(--ink-2)}
.small{font-size:.88rem}
.skip{position:absolute;left:-9999px;top:8px;background:var(--amber);color:var(--storm);padding:8px 12px;font-family:var(--sans);z-index:20}
.skip:focus{left:8px}

.wrap{max-width:var(--wide);margin:0 auto;padding-left:max(32px, env(safe-area-inset-left, 0px));padding-right:max(32px, env(safe-area-inset-right, 0px))}
@media (max-width:760px){.wrap{padding-left:max(20px, env(safe-area-inset-left, 0px));padding-right:max(20px, env(safe-area-inset-right, 0px))}}

/* ---------- header ---------- */
.site-header{background:var(--storm);color:#fff}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{font-family:var(--sans);font-weight:750;font-stretch:125%;font-size:19px;letter-spacing:-.01em;text-decoration:none;color:#fff;display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand svg{display:block;flex:none}
.nav{display:flex;align-items:center;gap:28px;font-family:var(--sans);font-size:15px}
.nav a{text-decoration:none;color:var(--cloud)}
.nav a:hover{color:#fff}
.nav a[aria-current="page"]{color:#fff;box-shadow:inset 0 -2px 0 var(--amber);padding-bottom:3px}
.nav a.sim-link{color:var(--storm);background:var(--amber);padding:8px 14px;border-radius:6px;font-weight:600;box-shadow:none}
.nav a.sim-link:hover{background:var(--amber-hi)}
.nav a.sim-link[aria-current="page"]{box-shadow:0 0 0 2px var(--storm),0 0 0 4px var(--amber)}
@media (max-width:760px){.nav a:not(.sim-link){display:none}}

/* ---------- page head (navy band) ---------- */
.page-head{background:var(--storm);color:#fff;padding-block:40px 52px}
.page-head .intro{display:flex;flex-direction:column;gap:16px;max-width:70ch}
.page-head .lede{font-size:19px;line-height:1.5;color:var(--cloud);max-width:64ch}
.page-head .crumbs{font-family:var(--sans);font-size:14px;color:var(--mist)}
.page-head .crumbs a{color:var(--mist)}
.page-head .crumbs a:hover{color:#fff}

/* ---------- page body ---------- */
main{display:block}
.page{display:flex;flex-direction:column;gap:80px;padding-block:64px 96px}
@media (max-width:760px){.page{gap:60px;padding-block:44px 72px}}
.section{display:flex;flex-direction:column;gap:22px;min-width:0}
.prose{max-width:var(--measure);display:flex;flex-direction:column;gap:16px}
.lede{font-size:19px;line-height:1.55}
.intro{display:flex;flex-direction:column;gap:18px;max-width:var(--measure)}
.crumbs{font-family:var(--sans);font-size:14px;color:var(--ink-2)}
.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 44px}
.cols-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 36px}
@media (max-width:820px){.cols-2,.cols-3{grid-template-columns:minmax(0,1fr)}}
.cols-2>*,.cols-3>*{min-width:0;display:flex;flex-direction:column;gap:10px}
.rule-top{border-top:3px solid var(--navy-ink);padding-top:18px}
.rule-top>p{font-size:17px}
.rule-top>svg{width:100%;max-width:300px;height:auto;display:block}
.callout{background:var(--white);border-left:3px solid var(--teal);border-radius:0 10px 10px 0;padding:16px 20px;max-width:var(--measure)}
.source{font-size:14px;color:var(--ink-2)}
.next{display:flex;flex-wrap:wrap;gap:14px;align-items:center}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font:650 16px var(--sans);padding:14px 22px;border-radius:8px;border:1px solid var(--amber);background:var(--amber);color:var(--storm);text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .2s,transform .2s}
.btn:hover{background:var(--amber-hi);text-decoration:none;transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--navy-ink);border-color:var(--navy-ink)}
.btn.ghost:hover{background:var(--white)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}

/* tables */
.tbl-wrap{overflow-x:auto;background:var(--white);border-radius:14px;padding:6px 24px}
table{border-collapse:collapse;width:100%;font-family:var(--sans);font-size:15px;line-height:1.45}
th,td{text-align:left;vertical-align:top;padding:13px 18px 13px 0;border-bottom:1px solid var(--line)}
tr:last-child td{border-bottom:0}
th{font-weight:600;font-size:13px;color:var(--ink-2)}
td:first-child{font-weight:650}
.tbl-wide table{min-width:760px}
.num{white-space:nowrap}

/* strategy list */
.strat-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.strat-item{display:flex;flex-direction:column;gap:8px;padding:20px;background:var(--white);border-radius:12px;color:inherit;text-decoration:none;min-width:0;border:1px solid transparent;transition:border-color .2s}
.strat-item:hover{border-color:var(--navy-ink)}
.strat-item svg{width:100%;max-width:240px;height:auto}
.strat-item p{font-size:16px;color:var(--ink-2)}

/* strategy facts */
.facts{display:grid;grid-template-columns:minmax(0,15em) minmax(0,1fr);max-width:900px;margin:0;background:var(--white);border-radius:14px;padding:6px 26px}
.facts dt,.facts dd{margin:0;padding:15px 0;border-bottom:1px solid var(--line)}
.facts dt{font-family:var(--sans);font-weight:650;padding-right:20px;font-size:16px}
.facts dt:last-of-type,.facts dd:last-of-type{border-bottom:0}
@media (max-width:640px){.facts{grid-template-columns:minmax(0,1fr);padding:6px 18px}.facts dt{border-bottom:none;padding-bottom:2px}.facts dd{padding-top:0}.facts dt:last-of-type{border-bottom:0}}

/* glossary */
.gloss{display:grid;grid-template-columns:minmax(0,13em) minmax(0,1fr);max-width:920px;margin:0;background:var(--white);border-radius:14px;padding:6px 26px}
.gloss dt,.gloss dd{margin:0;padding:13px 0;border-bottom:1px solid var(--line)}
.gloss dt{font-family:var(--sans);font-weight:650;padding-right:20px;font-size:16px;scroll-margin-top:16px}
@media (max-width:640px){.gloss{grid-template-columns:minmax(0,1fr);padding:6px 18px}.gloss dt{border-bottom:none;padding-bottom:0}.gloss dd{padding-top:2px}}

/* ---------- footer ---------- */
.site-close{background:var(--storm);color:#fff;padding-block:72px}
.site-close .wrap{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.site-close h2{max-width:20ch}
.site-footer{background:var(--storm);color:var(--mist);font-size:14px;padding-bottom:48px}
.site-footer .wrap{border-top:1px solid var(--storm-rule);padding-top:28px;display:grid;grid-template-columns:1fr 2fr;gap:40px}
.site-footer nav{display:flex;flex-direction:column;gap:6px;font-family:var(--sans)}
.site-footer nav a{color:var(--cloud);text-decoration:none}
.site-footer nav a:hover{color:#fff}
.site-footer p{margin:0 0 10px;max-width:80ch}
.site-footer a{color:var(--cloud)}
@media (max-width:760px){.site-footer .wrap{grid-template-columns:1fr}}

/* ---------- simulator (navy stage, like the homepage hero) ---------- */
.stage{
  --surface:var(--storm); --paper:var(--storm-2); --ink:#FFFFFF; --muted:var(--mist); --rule:var(--storm-rule);
  --hedge:var(--teal); --hedge-soft:rgba(92,200,176,.24); --loss-soft:rgba(159,179,200,.18); --market:var(--red);
  background:var(--storm);color:var(--cloud);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:22px;font-family:var(--sans)}
@media (max-width:600px){.stage{padding:18px;border-radius:12px}}
.stage a{color:var(--cloud)}
.sim{display:grid;grid-template-columns:310px minmax(0,1fr);gap:32px}
@media (max-width:980px){.sim{grid-template-columns:minmax(0,1fr)}}
.sim-tabs{display:flex;gap:4px;border-bottom:1px solid var(--storm-rule)}
.sim-tabs button{font:600 16px var(--sans);font-stretch:108%;background:none;border:none;border-bottom:3px solid transparent;color:var(--mist);padding:6px 2px 11px;margin-right:24px;cursor:pointer}
.sim-tabs button:hover{color:#fff}
.sim-tabs button[aria-selected="true"]{color:#fff;border-bottom-color:var(--red)}
.controls{display:flex;flex-direction:column;gap:20px;min-width:0}
.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px;color:var(--mist)}
.field-label output{color:#fff;font-weight:650;font-variant-numeric:tabular-nums}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button{font:600 14px var(--sans);padding:8px 13px;border-radius:8px;border:1px solid var(--storm-rule);background:transparent;color:var(--cloud);cursor:pointer;font-variant-numeric:tabular-nums;transition:background .2s,color .2s}
.seg button:hover{background:var(--storm-3)}
.seg button[aria-pressed="true"]{background:var(--teal);color:var(--storm);border-color:var(--teal)}
input[type=range]{width:100%;accent-color:var(--teal)}
.sim select{font:500 14px var(--sans);padding:7px 8px;border:1px solid var(--storm-rule);border-radius:8px;background:var(--storm-2);color:#fff;min-width:0}
.pickrow{display:flex;gap:8px}
.pickrow select{flex:1}
.legs{display:flex;flex-direction:column;gap:8px}
.leg{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:6px;align-items:center;font-size:14px}
.leg select,.leg input{font:500 14px var(--sans);padding:6px;border:1px solid var(--storm-rule);border-radius:8px;background:var(--storm-2);color:#fff;min-width:0}
.leg .strike{display:flex;align-items:center;gap:4px;min-width:0}
.leg .strike input{width:100%;max-width:72px}
.leg .muted{color:var(--mist)}
.leg button{font:inherit;border:none;background:transparent;color:var(--mist);cursor:pointer;padding:4px 6px;font-size:18px;line-height:1}
.leg button:hover{color:var(--red)}
.textbtn{font:500 14px var(--sans);align-self:flex-start;border:1px dashed var(--storm-rule);background:transparent;color:var(--cloud);border-radius:8px;padding:7px 11px;cursor:pointer}
.textbtn:hover{border-color:var(--cloud)}
.textbtn:disabled{opacity:.45;cursor:not-allowed}
.explain{font-family:var(--serif);font-size:16px;line-height:1.5;background:var(--storm-2);border-left:3px solid var(--teal);border-radius:0 8px 8px 0;padding:12px 14px;color:var(--cloud)}
details.assump{font-size:14px;color:var(--mist);border-top:1px solid var(--storm-rule);padding-top:12px}
details.assump summary{cursor:pointer;color:#fff}
details.assump p{margin-top:10px;font-family:var(--serif);font-size:15px}
details.assump .field{margin-top:12px}
.outputs{display:flex;flex-direction:column;gap:18px;min-width:0}
.legend{display:flex;flex-wrap:wrap;gap:6px 22px;font-family:var(--sans);font-size:14px;color:var(--ink-2)}
.stage .legend{color:var(--cloud)}
.legend span{display:inline-flex;align-items:center;gap:8px}
.sw{display:inline-block;width:22px;height:0;border-top:3px solid var(--hedge);border-radius:2px}
.sw.mkt{border-top:2.5px dashed var(--market)}
.chart-wrap{position:relative;min-width:0}
.chart-wrap svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.chart-title{font:650 16px var(--sans);margin-bottom:4px;color:#fff}
.chart-sub{font-size:13px;color:var(--mist);margin-top:-2px;margin-bottom:6px}
.tip{position:absolute;pointer-events:none;background:#fff;color:var(--navy-ink);font:500 13px var(--sans);padding:9px 11px;border-radius:8px;line-height:1.45;white-space:nowrap;transform:translate(-50%,-110%);font-variant-numeric:tabular-nums;z-index:2;box-shadow:0 8px 24px rgba(4,14,26,.35)}
.charts2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:26px;align-items:start}
@media (max-width:640px){.charts2{grid-template-columns:minmax(0,1fr)}}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.stat{padding:12px 0 14px;border-top:1px solid var(--storm-rule);display:flex;flex-direction:column;gap:6px;min-width:0}
.stat .k{font-size:13px;color:var(--mist)}
.stat .row{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;font-variant-numeric:tabular-nums;font-size:15px}
.stat .row .l:first-child{flex-basis:100%;font-size:12px}
.stat .row .n{font-weight:700;font-size:17px;color:#fff}
.stat .row.h .n{color:var(--teal)}
.stat .row.u .n{color:var(--red)}
.stat .row .l{color:var(--mist)}
.disclose{font-family:var(--serif);font-size:14px;color:var(--ink-2);max-width:var(--measure)}
.stage .disclose{color:var(--mist)}
.sim-msg{font-size:15px;color:var(--mist)}

/* payoff-only widget on light pages */
.payoff-solo{max-width:440px;background:var(--white);border-radius:14px;padding:18px 18px 14px;display:flex;flex-direction:column;gap:8px}
.payoff-solo svg{display:block;width:100%;height:auto}
.payoff-solo [data-cost]{font-family:var(--sans);font-size:14px;color:var(--ink-2)}

@media (max-width:760px){body{font-size:17px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
