.hd{max-width:1200px;margin:0 auto;padding:clamp(28px,6vw,90px) clamp(18px,4vw,54px);color:var(--color-v2-primary-neutral-100,#ecfff5)}
.hd h2{margin-bottom:14px}.hd p{max-width:62ch}.hd-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 18px}
.hd button,.hd-link{font:inherit;color:inherit;border:1px solid #658577;background:#142820;border-radius:8px;padding:9px 13px;cursor:pointer}
.hd button[aria-pressed=true],.hd-link{background:#b1ffe0;color:#091b14;border-color:#b1ffe0}.hd button:focus-visible,.hd-link:focus-visible{outline:2px solid #b1ffe0;outline-offset:4px}
.hd-panel{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:24px;border:1px solid #416458;border-radius:18px;padding:clamp(18px,4vw,40px);background:radial-gradient(ellipse at 100% 0%,#21483b,#101d18 75%)}
.hd-panel h3{font-size:clamp(1.35rem,3vw,2rem);margin:0 0 10px}.hd-panel p{color:#c0d6cb}.hd-panel small{display:block;margin-top:16px;color:#a9d1bf}
.hd-chart{width:100%;max-height:240px}.hd-chart text{fill:#c0d6cb;font:12px system-ui}.hd-chart .trace{stroke:#a9ffda;stroke-width:3;stroke-linejoin:round;fill:none;stroke-dasharray:1;animation:hd-draw 1.15s ease both}.hd-chart .ghost{stroke:#8fb4a5;stroke-dasharray:5 6;fill:none}.hd-chart .point{fill:#a9ffda;animation:hd-point 1.3s ease both}.hd-panel>div{animation:hd-in .35s ease both}
@keyframes hd-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes hd-point{0%,75%{opacity:0}100%{opacity:1}}@keyframes hd-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.hd-panel{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.hd *{animation:none!important}}
.hd-hero-link{display:inline-flex;width:fit-content;margin-block:14px;text-decoration:none}
#hedge-desk{scroll-margin-top:90px}

/* Architectural details in the existing site palette. */
.hd-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #93714a;
  box-shadow: inset 0 0 0 4px #101d18, inset 0 0 0 5px #73543180;
}
.hd-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 15px, #d2a36c22 15px 17px, transparent 17px 24px);
  mask-image: linear-gradient(to left, black, transparent 70%);
}
main > section:first-of-type { position: relative; isolation: isolate; }
main > section:first-of-type::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 47px, #d2a36c17 47px 49px, #d2a36c0b 49px 63px);
  mask-image: linear-gradient(115deg,transparent 38%,black);
}
#hedge-desk { scroll-margin-top: 90px; }

a.v2-logo, footer a[aria-label="Hedge Desk"] { display:inline-flex; align-items:center; gap:.55rem; width:max-content; }
a.v2-logo > *, footer a[aria-label="Hedge Desk"] > svg { display:none; }
a.v2-logo::before, footer a[aria-label="Hedge Desk"]::before {
  content:""; width:1.55rem; height:1.2rem; color:#b8945b;
  background: linear-gradient(currentColor,currentColor) center bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 7px) center bottom 3px / 82% 55% no-repeat;
  border-top:3px double currentColor;
}
a.v2-logo::after, footer a[aria-label="Hedge Desk"]::after { content:"Hedge Desk"; font:600 1.05rem/1.2 Georgia,serif; white-space:nowrap; }

/* Montra-inspired color system applied to the existing Hedge Desk layout. */
:root:root {
  --color-v2-primary-black: #080808;
  --color-v2-primary-neutral-0: #faf9f5;
  --color-v2-primary-neutral-100: #f2f0ea;
  --color-v2-primary-neutral-200: #e6e3db;
  --color-v2-primary-neutral-300: #cbc8bf;
  --color-v2-primary-neutral-400: #b6b3ab;
  --color-v2-primary-neutral-500: #a7a49c;
  --color-v2-primary-neutral-600: #77756f;
  --color-v2-primary-neutral-700: #494944;
  --color-v2-primary-neutral-900: #222423;
  --color-v2-primary-neutral-950: #151716;
  --color-v2-primary-neutral-1000: #101111;
  --color-v2-primary-green-100: #eeebe0;
  --color-v2-primary-green-200: #d5ccad;
  --color-v2-primary-green-300: #324941;
  --color-v2-op-green-10: #d5ccad1a;
  --color-v2-op-green-200-5: #d5ccad0d;
  --color-v2-op-green-300-10: #3249411a;
  --color-v2-op-green-400-70: #253730b3;
  --color-v2-op-nav-bg-dark: #0b0c0bf2;
  --color-marketing-muted-green: #a9ada5;
  --marketing-gradient: linear-gradient(25deg,#ebe7d8,#bcb59c 40%,#5c7066 72%,#263831);
}
.v2-hero-glow { background-image:radial-gradient(ellipse at 70% 12%,#253b35 0%,#15221e 38%,transparent 74%); }
[data-v2-page] .bg-c-green-100 { background-color:#eae6d8; }
.logo-panel.docked.svelte-10mjysc { background-color:#101211f0; box-shadow:0 -1px #ffffff16,0 -16px 32px #08080866; }
.hd-panel { background:radial-gradient(ellipse at 95% 0%,#243630,#121613 72%); border-color:#827553; box-shadow:inset 0 0 0 4px #121613,inset 0 0 0 5px #82755355; }
.hd button { background:#171d19; border-color:#535a50; }
.hd button[aria-pressed=true],.hd-link { background:#f0ede3; color:#101210; border-color:#f0ede3; }
.hd button:focus-visible,.hd-link:focus-visible { outline-color:#e9dfc8; }
.hd-panel p,.hd-panel small,.hd-chart text { color:#c5c2b8; }
.hd-chart text { fill:#c5c2b8; }
.hd-chart .trace { stroke:#e3d7b7; }
.hd-chart .point { fill:#e3d7b7; }
.hd-chart .ghost { stroke:#7b877f; }

/* Svelte can recreate the retired footer and drop its server-rendered hidden attribute. */
body:has(> .hedge-footer) footer.v2-footer-glow { display:none !important }
.hedge-footer {
  position:relative;
  isolation:isolate;
  color:#eeeae0;
  background:radial-gradient(ellipse at 84% 45%,#25362d 0%,#141a15 34%,#0d100e 68%);
  border-top:4px double #927650;
  font:1rem/1.5 system-ui,sans-serif;
  overflow:hidden;
}
.hedge-footer::after {
  content:"";display:block;height:12px;
  background:repeating-conic-gradient(from 45deg,#b8945b85 0 25%,transparent 0 50%) 0 0/12px 12px;
  opacity:.55;
}
.hedge-footer-body,.hedge-footer-end {width:min(1200px,calc(100% - 48px));margin-inline:auto}
.hedge-footer-body {display:grid;grid-template-columns:1.45fr .8fr 1fr 1fr;gap:22px;padding-block:38px}
.hedge-footer a {color:#d9d5c8;text-decoration:none}
.hedge-footer a:hover {color:#f3e7c5;text-decoration:underline;text-underline-offset:3px}
.hedge-footer-brand>a {font:500 clamp(2rem,4vw,3rem)/1 Georgia,serif;color:#f1e9d8;letter-spacing:-.04em}
.hedge-footer-brand p {max-width:30ch;margin:10px 0 0;color:#bebfb1}
.hedge-footer nav {display:flex;flex-direction:column;align-items:start;gap:7px;font-size:.9rem}
.hedge-footer nav h2 {margin:0 0 3px;font:600 .8rem/1.3 system-ui;color:#d9bb81;letter-spacing:.07em;text-transform:uppercase}
.hedge-footer-columns {
  align-self:end;justify-self:end;width:min(100%,178px);height:89px;
  border-top:6px double #b09462;border-bottom:6px double #b09462;
  background:repeating-linear-gradient(90deg,transparent 0 14%,#a8916266 14% 16%,#a8916238 16% 19%,#a8916266 19% 21%,transparent 21% 25%);
  opacity:.65;
}
.hedge-footer-end {display:flex;justify-content:space-between;gap:12px;border-top:1px solid #55503e;padding-block:14px;color:#bcb9aa;font-size:.82rem}
@media(max-width:770px){.hedge-footer-body{grid-template-columns:1fr 1fr}.hedge-footer-brand{grid-column:1/-1}.hedge-footer-columns{display:none}}
@media(max-width:400px){.hedge-footer-body,.hedge-footer-end{width:calc(100% - 32px)}.hedge-footer-end{flex-direction:column}}

.hedge-footer-body {grid-template-columns:1.5fr .8fr 1fr}
@media(max-width:770px){.hedge-footer-body{grid-template-columns:1fr 1fr}}

[data-hedge-market-label] {
  display:inline-flex!important;
  align-items:center;
  min-width:max-content;
  padding-inline:10px;
  height:auto!important;
  color:#bdbfae;
  font:500 clamp(.9rem,1.4vw,1.15rem)/1.25 Georgia,serif;
  white-space:nowrap;
}
[data-hedge-market-label] svg {display:none}
[data-hedge-market-label]::before {content:attr(data-hedge-market-label)}
