/* PRECEDENT stock recommendations — warm editorial interface. Data meanings remain unchanged. */
:root {
  --peach: #d4b39d;
  --peach-soft: #e7d5c7;
  --peach-pale: #f3ebe3;
  --coral: #925a43;
  --aubergine: #252422;
  --aubergine-2: #4f4a45;
  --cream: #f3eee6;
  --paper: #fbf8f2;
  --lime: #b8beaa;
  --lime-dark: #616b58;
  --lavender: #ddd6cf;
  --sky: #d9e0dc;
  --ink: var(--aubergine);
  --ink-2: #5e5954;
  --ink-3: #89817a;
  --line: rgba(37, 36, 34, 0.14);
  --line-strong: rgba(37, 36, 34, 0.26);
  --long: #3f7167;
  --short: #9b5147;
  --band: #d8b9a6;
  --band-median: #252422;
  --good: #3f7167;
  --bad: #9b5147;
  --shadow: 0 14px 38px rgba(44, 39, 34, 0.07);
  --shadow-hover: 0 19px 48px rgba(44, 39, 34, 0.11);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --display: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 6% 24%, rgba(212, 179, 157, .13), transparent 24rem),
    radial-gradient(circle at 95% 70%, rgba(184, 190, 170, .11), transparent 27rem),
    var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left center; }
a { color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
code, .num { font-family: var(--mono); font-size: .92em; }

/* Loading screen — adapted from Uiverse.io by Nawsome. */
.loading-screen {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; overflow: hidden;
  background: #dfcabb;
  color: var(--aubergine);
}
.loading-screen[hidden] { display: none; }
.loading-screen::before {
  content: ""; position: absolute; inset: 20px; border: 1px solid rgba(37, 36, 34, .18);
  border-radius: 8px; pointer-events: none;
}
.loading-lockup { position: relative; z-index: 2; display: grid; place-items: center; text-align: center; }
.loading-kicker { margin-bottom: 28px; font: 700 11px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.loading-lockup p { margin: 22px 0 0; font-size: 13px; font-weight: 700; }
.loading-dots { display: inline-block; width: 18px; text-align: left; }
.loader { position: relative; width: 75px; height: 100px; }
.loader__bar {
  position: absolute; bottom: 0; width: 10px; height: 50%;
  background: var(--aubergine); border-radius: 2px 2px 0 0;
  transform-origin: center bottom; box-shadow: 1px 1px 0 rgba(37, 36, 34, .12);
}
.loader__bar:nth-child(1) { left: 0; transform: scale(1, .2); animation: barUp1 4s infinite; }
.loader__bar:nth-child(2) { left: 15px; background: var(--coral); transform: scale(1, .4); animation: barUp2 4s infinite; }
.loader__bar:nth-child(3) { left: 30px; background: var(--aubergine); transform: scale(1, .6); animation: barUp3 4s infinite; }
.loader__bar:nth-child(4) { left: 45px; background: var(--coral); transform: scale(1, .8); animation: barUp4 4s infinite; }
.loader__bar:nth-child(5) { left: 60px; background: var(--aubergine); transform: scale(1, 1); animation: barUp5 4s infinite; }
.loader__ball {
  position: absolute; bottom: 10px; left: 0; width: 10px; height: 10px;
  background: #eef0e7; border: 2px solid var(--aubergine); border-radius: 50%;
  animation: ball624 4s infinite;
}
.loader-orbit { position: absolute; border-radius: 4px; border: 1px solid rgba(37, 36, 34, .12); transform: rotate(45deg); }
.loader-orbit-one { width: 38vw; aspect-ratio: 1; min-width: 340px; }
.loader-orbit-two { width: 62vw; aspect-ratio: 1; min-width: 560px; }

@keyframes ball624 {
  0% { transform: translate(0, 0); } 5% { transform: translate(8px, -14px); }
  10% { transform: translate(15px, -10px); } 17% { transform: translate(23px, -24px); }
  20% { transform: translate(30px, -20px); } 27% { transform: translate(38px, -34px); }
  30% { transform: translate(45px, -30px); } 37% { transform: translate(53px, -44px); }
  40% { transform: translate(60px, -40px); } 50% { transform: translate(60px, 0); }
  57% { transform: translate(53px, -14px); } 60% { transform: translate(45px, -10px); }
  67% { transform: translate(37px, -24px); } 70% { transform: translate(30px, -20px); }
  77% { transform: translate(22px, -34px); } 80% { transform: translate(15px, -30px); }
  87% { transform: translate(7px, -44px); } 90% { transform: translate(0, -40px); }
  100% { transform: translate(0, 0); }
}
@keyframes barUp1 { 0%, 40% { transform: scale(1, .2); } 50%, 90% { transform: scale(1, 1); } 100% { transform: scale(1, .2); } }
@keyframes barUp2 { 0%, 40% { transform: scale(1, .4); } 50%, 90% { transform: scale(1, .8); } 100% { transform: scale(1, .4); } }
@keyframes barUp3 { 0%, 100% { transform: scale(1, .6); } }
@keyframes barUp4 { 0%, 40% { transform: scale(1, .8); } 50%, 90% { transform: scale(1, .4); } 100% { transform: scale(1, .8); } }
@keyframes barUp5 { 0%, 40% { transform: scale(1, 1); } 50%, 90% { transform: scale(1, .2); } 100% { transform: scale(1, 1); } }

.app-shell { overflow: hidden; }
.site-header { background: linear-gradient(115deg, #e5d4c5 0%, #eee4d8 72%, #e2d8cc 100%); border-bottom: 1px solid var(--line); }
.nav-wrap {
  width: min(1180px, calc(100% - 40px)); min-height: 82px; margin: 0 auto;
  display: flex; align-items: center; gap: 36px; border-bottom: 1px solid rgba(53, 28, 56, .16);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.015em; }
.brand-mark { width: 27px; height: 27px; padding: 5px; display: flex; align-items: end; gap: 2px; background: var(--aubergine); border-radius: 3px; }
.brand-mark span { flex: 1; background: #e7d5c7; border-radius: 1px 1px 0 0; }
.brand-mark span:nth-child(1) { height: 35%; } .brand-mark span:nth-child(2) { height: 62%; } .brand-mark span:nth-child(3) { height: 90%; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 700; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.chip { font: 700 10px/1.25 var(--mono); padding: 9px 12px; border-radius: 4px; border: 1px solid var(--aubergine); white-space: nowrap; }
.chip-unproven { background: var(--lime); color: var(--aubergine); }
.chip-proven { background: var(--aubergine); color: var(--lime); }

.hero {
  width: min(1180px, calc(100% - 40px)); min-height: 570px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; gap: 70px;
  padding: 62px 0 76px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index { font: 700 10px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border: 1px solid var(--aubergine); border-radius: 50%; background: var(--coral); }
h1 { margin: 25px 0 24px; max-width: 790px; font: 500 clamp(48px, 5.8vw, 78px)/.98 var(--display); letter-spacing: -.04em; }
h1 em { color: var(--coral); font-weight: 500; }
.hero-deck { max-width: 620px; margin: 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.62; color: var(--aubergine-2); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 28px; padding: 14px 17px 14px 19px; border: 1px solid var(--aubergine); border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 750; box-shadow: 0 6px 16px rgba(37,36,34,.08); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 23px rgba(37,36,34,.12); background: #c4c9b8; }
.button-primary { background: var(--lime); }
.button span { font-size: 19px; line-height: 0; }
.read-only-note { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.read-only-note i { width: 8px; height: 8px; background: #2f8c79; border-radius: 50%; box-shadow: 0 0 0 4px rgba(47, 140, 121, .14); }

.hero-art { min-height: 420px; position: relative; }
.hero-card { position: absolute; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px rgba(40,36,32,.12); }
.hero-card-main { z-index: 2; top: 42px; left: 0; width: min(100%, 390px); height: 300px; padding: 28px; background: var(--paper); border-radius: 10px; }
.scribble { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.mini-chart { height: 175px; margin-top: 28px; display: flex; align-items: end; gap: 9px; padding: 0 6px 10px; border-bottom: 1px solid var(--line-strong); }
/* Bar heights live here rather than in a style="" attribute so the published
   Content-Security-Policy can forbid inline styles outright. */
.mini-chart i { flex: 1; border: 1px solid var(--line-strong); border-radius: 2px 2px 0 0; background: var(--peach); }
.mini-chart i:nth-child(1) { height: 35%; }
.mini-chart i:nth-child(2) { height: 52%; }
.mini-chart i:nth-child(3) { height: 44%; }
.mini-chart i:nth-child(4) { height: 78%; }
.mini-chart i:nth-child(5) { height: 67%; }
.mini-chart i:nth-child(6) { height: 92%; }
.mini-chart i:nth-child(2), .mini-chart i:nth-child(5) { background: var(--lavender); }
.mini-chart i:nth-child(4), .mini-chart i:nth-child(6) { background: var(--lime); }
.mini-axis { display: flex; justify-content: space-between; margin-top: 12px; font: 700 10px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; }
.hero-card-sticker { z-index: 3; right: 0; top: 0; width: 142px; padding: 20px; background: var(--lime); border-radius: 5px; font-family: var(--display); }
.hero-card-sticker span { display: block; font-size: 33px; line-height: .9; }
.hero-card-sticker small { display: block; margin-top: 10px; font: 700 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-sun { position: absolute; width: 230px; height: 230px; right: -60px; bottom: 5px; border-radius: 5px; background: var(--coral); opacity: .78; }
.hero-squiggle { display: none; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 90px; }
.section-block { margin: 0 0 100px; scroll-margin-top: 28px; }
.section-heading { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, .7fr); align-items: end; gap: 40px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0 0; font: 500 clamp(34px, 4vw, 52px)/1.04 var(--display); letter-spacing: -.035em; }
.section-heading > p { max-width: 54ch; margin: 0 0 4px; color: var(--ink-2); font-size: 14px; }
.section-index { color: var(--coral); }
.compact-heading h2 { font-size: clamp(30px, 3.2vw, 44px); }

.banner { padding: 18px 21px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--peach-pale); color: var(--ink-2); font-size: 13px; }
.banner-error { margin: -45px 0 40px; background: #ffe6e0; color: var(--bad); border-color: rgba(199, 71, 67, .25); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--peach); opacity: .75; pointer-events: none; }
.card:hover { box-shadow: var(--shadow-hover); border-color: rgba(37, 36, 34, .4); }
.card-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ticker { font: 600 25px/1 var(--display); letter-spacing: -.025em; }
.pill { padding: 5px 8px 4px; border-radius: 3px; color: #fff; font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.pill-long { background: var(--long); } .pill-short { background: var(--short); } .pill-control { background: var(--aubergine-2); }
.card-date { width: 100%; margin-top: 3px; color: var(--ink-3); font: 600 11px/1.4 var(--mono); }
.card-summary { min-height: 66px; margin: 18px 0 22px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.card-summary.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.range-row { padding: 15px 14px; border-radius: 6px; background: var(--peach-pale); }
.range-svg { display: block; width: 100%; height: 54px; overflow: visible; }
.range-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.range-facts span { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font: 600 10px/1.35 var(--mono); text-transform: uppercase; }
.range-facts b { display: block; margin-top: 3px; color: var(--ink); font: 800 13px/1.2 var(--body); text-transform: none; }
.card-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 17px; color: var(--ink-3); font-size: 12px; }
.linkish { border: 0; padding: 0; background: none; color: var(--aubergine); cursor: pointer; font: 700 12px/1.3 var(--body); text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--lime-dark); }
.detail { position: relative; z-index: 1; margin-top: 17px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13px; }
.detail h4 { margin: 14px 0 5px; color: var(--coral); font: 800 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.detail ul { margin: 6px 0; padding-left: 20px; color: var(--ink-2); }
.detail p { margin: 5px 0; color: var(--ink-2); }
.detail .prov { color: var(--ink-3); font-size: 10px; word-break: break-all; }
.muted { color: var(--ink-3); font-weight: 500; }

.earlier-notes { margin-top: 24px; }
.quiet-details > summary { list-style: none; cursor: pointer; font: 800 15px/1.4 var(--body); }
.quiet-details > summary::-webkit-details-marker { display: none; }
.quiet-details > summary::after { content: "+"; float: right; font-size: 24px; line-height: .7; }
.quiet-details[open] > summary::after { content: "−"; }
.earlier-notes > summary { padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--peach-pale); }
.earlier-notes[open] > summary { margin-bottom: 18px; }

.section-soft { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #ded3c9; box-shadow: var(--shadow); }
.closed-list { overflow: hidden; border: 1px solid rgba(53, 28, 56, .18); border-radius: var(--radius-md); background: rgba(255, 253, 248, .72); }
.closed-row { display: grid; grid-template-columns: 90px 65px minmax(140px, 1.2fr) minmax(150px, 1fr) 130px; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.closed-row:last-child { border-bottom: 0; }
.closed-row .ticker { font-size: 18px; }
.outcome-gain { color: var(--good); font-weight: 800; } .outcome-loss { color: var(--bad); font-weight: 800; }
.empty-state { margin: 0; padding: 24px; color: var(--ink-3); font-size: 14px; }

.section-parked { margin-top: -55px; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #e8dfd5; }
.details-intro { margin: 10px 0 18px; color: var(--ink-2); font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 13px; background: var(--paper); }
.plain-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plain-table th { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 800 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.plain-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plain-table tr:last-child td { border-bottom: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { min-height: 185px; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--paper); }
.tile:nth-child(1) { background: #e7d5c7; } .tile:nth-child(2) { background: #cdd1c2; } .tile:nth-child(3) { background: #d9e0dc; } .tile:nth-child(4) { background: #ddd6cf; }
.tile .t-label { font: 800 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tile .t-value { margin-top: 28px; font: 600 clamp(25px, 2.8vw, 39px)/.98 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .t-sub { margin-top: 16px; color: var(--ink-2); font-size: 11px; line-height: 1.45; }
.honesty-note { max-width: 86ch; margin: 20px 0 0; padding-left: 17px; border-left: 4px solid var(--coral); color: var(--ink-2); font-size: 13px; }

.section-backtest { padding-top: 6px; }
.bt-row { margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.bt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bt-name { font: 800 16px/1.2 var(--display); letter-spacing: -.02em; }
.bt-meta { color: var(--ink-3); font: 600 10px/1 var(--mono); text-transform: uppercase; }
.bt-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 13px; color: var(--ink-2); font-size: 12px; }
.bt-stats span { padding: 8px 10px; border-radius: 9px; background: var(--peach-pale); }
.bt-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(37, 36, 34, .64); backdrop-filter: blur(8px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(820px, 100%); max-height: 86vh; overflow: auto; padding: 28px 32px; border: 1px solid var(--aubergine); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 25px 70px rgba(0,0,0,.2); }
.modal-close { position: sticky; top: 0; z-index: 2; float: right; width: 36px; height: 36px; border: 1px solid var(--aubergine); border-radius: 4px; background: var(--peach-soft); color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1; }
.md { color: var(--ink-2); font-size: 13px; }
.md pre { padding: 14px; overflow-x: auto; border-radius: 12px; background: var(--peach-pale); font-size: 11px; }
.md h1, .md h2, .md h3 { color: var(--ink); font-family: var(--display); letter-spacing: -.03em; }

footer { padding: 38px 0; background: #262522; color: var(--cream); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 35px; }
.footer-brand .brand-mark { background: var(--peach); }
.footer-inner p { max-width: 740px; margin: 0; color: rgba(255, 250, 242, .68); font-size: 11px; }
.footer-inner code { color: var(--lime); }
.back-top { font-size: 12px; font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-wrap .chip { margin-left: auto; max-width: 230px; white-space: normal; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 52px; }
  .hero-art { width: min(520px, 100%); margin: 0 auto; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .closed-row { grid-template-columns: 75px 60px 1fr; }
  .closed-row > :nth-child(4), .closed-row > :nth-child(5) { grid-column: 3; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 620px) {
  .nav-wrap, .hero, main, .footer-inner { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 72px; gap: 10px; }
  .nav-wrap .chip { padding: 7px 9px; font-size: 9px; max-width: 148px; }
  .hero { min-height: auto; padding: 48px 0 62px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-deck { font-size: 16px; }
  .hero-art { min-height: 340px; }
  .hero-card-main { width: calc(100% - 34px); height: 265px; }
  .hero-card-sticker { width: 118px; padding: 16px; }
  .hero-card-sticker span { font-size: 28px; }
  .hero-sun { width: 190px; height: 190px; }
  main { padding-top: 62px; }
  .section-block { margin-bottom: 72px; }
  .section-soft { padding: 28px 18px; box-shadow: var(--shadow); }
  .section-parked { margin-top: -30px; padding: 19px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 150px; }
  .tile .t-value { margin-top: 20px; }
  .closed-row { grid-template-columns: 65px 55px 1fr; padding: 13px; font-size: 11px; }
  .modal-box { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
