/* Resources: article pages (site/resources/<slug>/) and the hub (site/resources.html). Built by resources/build.py. */
body{margin:0;background:#05070f}
a{color:#c7d2fe;text-decoration:none}a:hover{color:#fff}

/* Article */
.art-hero{padding-bottom:24px}
.art-head{max-width:720px;width:100%;margin-inline:auto;gap:16px}
.art-head h1{font-size:clamp(32px,4.4vw,52px)}
.art-back{font-size:14px}
.art-meta{font-size:14px;color:#8b95b8}
.art-sec{padding-top:8px}
.art-sec .wrap{display:flex;flex-direction:column;gap:56px}
.art{max-width:720px;width:100%;margin-inline:auto;font-size:17px;line-height:1.65}
.art h2{font-size:26px;line-height:1.2;letter-spacing:-.4px;margin-top:40px}
.art h3{font-size:20px;margin-top:28px}
.art p,.art li{color:#d5dbef;font-size:17px}
.art p,.art ul,.art ol,.art figure,.art blockquote,.art table{margin-top:14px}
.art ul,.art ol{padding-left:22px;display:flex;flex-direction:column;gap:8px}
.art a{color:#c7d2fe;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(199,210,254,.4)}
.art a:hover{color:#fff;text-decoration-color:#fff}
.art strong{color:#fff;font-weight:500}
.art blockquote{border-left:3px solid #4f7bff;padding:4px 0 4px 18px;margin-left:0;color:#e6e9f5}
.art figure{margin-left:0;margin-right:0}
.art figure img,.art figure svg{display:block;width:100%;height:auto;border-radius:16px;background:#0b1020}
.art figcaption{font-size:14px;color:#8b95b8;margin-top:10px}
.art table{width:100%;border-collapse:collapse;font-size:15px}
/* Brief charts (figure.brief-chart): a dark card in Roboto, matching .art-short; the SVG scales to the card width */
.art figure.brief-chart{font-family:Roboto,Arial,sans-serif;background:#0b1020;border:1px solid rgba(143,171,255,.3);border-radius:18px;padding:26px 28px 22px;margin-top:24px}
.art .brief-chart h3{margin:0;font-family:inherit;font-size:21px;line-height:1.3;font-weight:700;letter-spacing:0;color:#fff}
.art .brief-chart p{margin-top:8px;font-family:inherit;font-size:15px;line-height:1.45;color:#aab3cf}
.art .brief-chart-plot{padding-top:28px}
.art figure.brief-chart svg{display:block;width:100%;max-width:100%;height:auto;overflow:visible;border-radius:0;background:none}
.art .brief-chart figcaption{margin-top:18px;font-family:inherit;font-size:14px;line-height:1.5;color:#aab3cf}
.art aside.art-short{margin-top:28px}
.art th,.art td{text-align:left;padding:10px 12px;border-bottom:1px solid rgba(148,163,255,.14);color:#d5dbef}
.art th{color:#fff;font-weight:500}
.art-short{background:#0b1020;border:1px solid rgba(143,171,255,.3);border-radius:18px;padding:20px 22px;margin-bottom:8px}
.art-short-k{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#8fabff}
.art-short p{margin-top:8px;color:#fff;font-size:18px}
.art-sources{margin-top:40px;padding-top:20px;border-top:1px solid rgba(148,163,255,.14)}
.art-sources h2{font-size:18px;margin-top:0}
.art-sources li,.art-sources p{font-size:14px;color:#aab3cf}
.art-note{margin-top:32px!important;font-size:14px!important;color:#8b95b8!important}
.art-cta{max-width:720px;width:100%;margin-inline:auto;box-sizing:border-box;background:linear-gradient(135deg,#13205a,#1e1b4b 60%,#0b1020);border:1px solid rgba(143,171,255,.3);border-radius:24px;padding:28px 30px;display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.art-cta>div{flex:1 1 320px;display:flex;flex-direction:column;gap:8px}
.art-cta h2{font-size:24px;line-height:1.2}
.art-cta-k{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#c4b5fd}

/* Hub: hero, featured (newest live piece, built by resources/build.py) and latest */
.hub-hero{position:relative;max-width:1280px;margin:0 auto;padding:52px 24px 36px;display:flex;flex-direction:column;gap:18px;box-sizing:border-box}
.hub-top{position:relative;max-width:1280px;margin:0 auto;padding:8px 24px 40px;display:flex;flex-direction:column;gap:22px;box-sizing:border-box}
.hub-feat{background:linear-gradient(135deg,#13205a,#1e1b4b 60%,#0b1020);border:1px solid rgba(143,171,255,.3);border-radius:28px;overflow:hidden;color:#fff;display:flex;align-items:stretch;min-height:340px}
.hub-feat:hover{border-color:rgba(143,171,255,.6);color:#fff}
.hub-feat-t{flex:1 1 46%;padding:40px 40px 36px;display:flex;flex-direction:column;gap:14px;justify-content:center;min-width:0}
.hub-feat-k{display:flex;gap:10px;align-items:center;font-size:13px;letter-spacing:2px;text-transform:uppercase;color:#c4b5fd}
.hub-feat-h{font-size:38px;font-weight:700;letter-spacing:-.7px;line-height:1.1}
.hub-feat-d{color:#c9d0e6;font-size:17px;line-height:1.5}
.hub-feat-m{font-size:14px;color:#8b95b8}
.hub-feat-go{align-self:flex-start;margin-top:6px;background:#fff;color:#05070f;border-radius:999px;padding:11px 20px;font-weight:500;font-size:15px}
.hub-feat:hover .hub-feat-go{background:#e0e7ff}
.hub-feat-chart{flex:1 1 54%;min-width:0;margin:24px 24px 24px 0;background:#0b1020;border:1px solid rgba(143,171,255,.22);border-radius:20px;padding:22px 24px 18px;display:flex;flex-direction:column;gap:14px;font-family:Roboto,Arial,sans-serif}
.hub-feat-ct{font-size:15px;font-weight:500;line-height:1.35;color:#e6e9f5}
.hub-feat-svg{display:block;flex:1;min-height:0}
.hub-feat-svg svg{display:block;width:100%;height:auto;max-height:400px;overflow:visible}
.hub-feat-art{flex:1 1 50%;position:relative;overflow:hidden;display:block;min-height:300px}
.hub-feat-art i{position:absolute;display:block}
.hub-feat-art .r{left:48px;top:48px;width:200px;height:200px;border-radius:50%;border:30px solid #4f7bff;box-sizing:border-box;box-shadow:0 0 60px rgba(79,123,255,.5)}
.hub-feat-art .b{left:300px;height:16px;border-radius:999px}
.hub-feat-art .b1{top:70px;width:260px;background:#c4b5fd}
.hub-feat-art .b2{top:108px;width:200px;background:#8fabff}
.hub-feat-art .b3{top:146px;width:150px;background:#a78bfa}
.hub-feat-art .b4{top:184px;width:90px;background:#5c6890}
.hub-sub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.hub-sub-i{background:#0b1020;border:1px solid rgba(143,171,255,.24);border-radius:24px;overflow:hidden;color:#fff;display:flex;flex-direction:column}
.hub-sub-i:hover{border-color:rgba(143,171,255,.6);color:#fff}
.hub-sub-chart{height:290px;box-sizing:border-box;margin:18px 18px 0;background:#080c1a;border:1px solid rgba(143,171,255,.16);border-radius:16px;padding:16px 18px 12px;display:flex;flex-direction:column;gap:10px;font-family:Roboto,Arial,sans-serif}
.hub-sub-chart .hub-feat-ct{font-size:14px}
.hub-sub-chart .hub-feat-svg{flex:1;min-height:0}
.hub-sub-chart svg{display:block;width:100%;height:100%;overflow:visible}
.hub-sub-art{position:relative;overflow:hidden;display:block;height:200px;background:linear-gradient(135deg,#13205a,#1e1b4b 60%,#0b1020)}
.hub-sub-art i{position:absolute;display:block}
.hub-sub-art .r{left:32px;top:32px;width:130px;height:130px;border-radius:50%;border:22px solid #4f7bff;box-sizing:border-box}
.hub-sub-art .b{left:200px;height:12px;border-radius:999px}
.hub-sub-art .b1{top:54px;width:180px;background:#c4b5fd}.hub-sub-art .b2{top:82px;width:140px;background:#8fabff}
.hub-sub-art .b3{top:110px;width:100px;background:#a78bfa}.hub-sub-art .b4{top:138px;width:60px;background:#5c6890}
.hub-sub-t{padding:22px 26px 26px;display:flex;flex-direction:column;gap:10px}
.hub-sub-h{font-size:24px;font-weight:700;letter-spacing:-.4px;line-height:1.18}
.hub-sub-d{color:#aab3cf;font-size:15px;line-height:1.5}
.hub-latest{display:flex;flex-direction:column;gap:14px}
.hub-latest-hd{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.hub-latest-h{font-size:20px;font-weight:500;color:#fff}
.hub-latest-hd a{font-size:14px}
.hub-latest-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.hub-latest-i{background:#0b1020;border:1px solid rgba(148,163,255,.16);border-radius:18px;padding:18px 20px;color:#fff;display:flex;flex-direction:column;gap:6px}
.hub-latest-i:hover{border-color:rgba(143,171,255,.55);color:#fff}
.hub-latest-i .k{font-size:13px;color:#8fabff;display:flex;gap:8px;align-items:center}
.hub-latest-i .t{font-weight:500;font-size:16px;line-height:1.35}
.hub-latest-i .m{font-size:13px;color:#8b95b8;margin-top:auto;padding-top:4px}
.is-new{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:700;color:#05070f;background:#8fabff;border-radius:999px;padding:2px 7px;line-height:1.4}
.hub-feat-k .is-new{background:#c4b5fd}
.hub-nl{position:relative;max-width:1280px;margin:0 auto;padding:0 24px 64px;box-sizing:border-box}

/* Hub: Start where you are (glossary + learning paths) */
.paths-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.path-card{min-width:0}
.gl-card{background:#0b1020;border:1px solid rgba(143,171,255,.4);border-radius:22px;padding:26px;display:flex;flex-direction:column;gap:14px}
.gl-k{font-size:13px;color:#8b95b8}
.live{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#86efac;border:1px solid rgba(134,239,172,.45);border-radius:999px;padding:2px 8px;font-weight:500}
.gl-h{font-size:22px;font-weight:500;color:#fff}
.gl-d{font-size:14px;color:#aab3cf}
.gl-chips{display:flex;gap:8px;flex-wrap:wrap;font-size:14px}
.gl-chips a{background:#0d1430;color:#e6e9f5;padding:5px 12px;border-radius:999px}
.gl-chips a:hover{background:#16204a;color:#fff}
.gl-all{font-weight:500;font-size:14px;margin-top:auto}

@media (max-width:1100px){.paths-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.hub-feat{flex-direction:column}.hub-feat-chart{margin:0 24px 24px}.hub-feat-t{padding:32px 28px 20px}}

/* Hub: filters, library, coming soon */
.hub-chips{display:flex;gap:8px;flex-wrap:wrap;font-size:14px}
.hub-chips button{background:transparent;color:#e6e9f5;border:1px solid rgba(199,210,254,.3);border-radius:999px;padding:8px 16px;font:inherit;cursor:pointer}
.hub-chips button[aria-pressed="true"]{background:#fff;color:#05070f;border-color:#fff;font-weight:500}
.lib-grid{display:flex;gap:18px;flex-wrap:wrap}
.lib-card{flex:1 1 260px;background:#0b1020;border:1px solid rgba(148,163,255,.16);border-radius:22px;overflow:hidden;color:#fff;display:flex;flex-direction:column;transition:border-color .2s,transform .2s}
.lib-card:hover{border-color:rgba(143,171,255,.55);transform:translateY(-2px)}
.lib-b{padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.lib-b .k{font-size:13px;color:#8fabff;display:flex;gap:8px;align-items:center}
.lib-b .t{font-weight:500;font-size:17px}
.lib-b .m{font-size:13px;color:#8b95b8}
.lib-empty{color:#aab3cf}
.lib-soon{opacity:.72}
.soon-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.soon{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#c4b5fd;border:1px solid rgba(196,181,253,.45);border-radius:999px;padding:2px 8px;font-weight:500}
[hidden]{display:none!important}

/* Card thumbnails */
.th{height:150px;position:relative;overflow:hidden;display:block;background:radial-gradient(ellipse at 30% 20%,rgba(124,58,237,.25),rgba(5,7,15,0) 70%),#0d1430}
.th span,.th i{position:absolute;display:block}
.th-ring{left:30px;top:30px;width:90px;height:90px;border-radius:50%;border:16px solid #4f7bff;box-sizing:border-box}
.th-ring.r2{left:100px;top:46px;width:70px;height:70px;border-width:12px;border-color:#c4b5fd}
.th-bar{left:140px;height:12px;border-radius:999px}
.th-bar.b1{top:56px;width:110px;background:#c4b5fd}
.th-bar.b2{top:84px;width:70px;background:#8fabff}
.th-cols{left:30px;bottom:0;display:flex!important;gap:8px;align-items:flex-end}
.th-cols i{position:static;width:28px;border-radius:4px 4px 0 0;background:#4f7bff}
.th-cols i:nth-child(1){height:40px;background:rgba(143,171,255,.35)}
.th-cols i:nth-child(2){height:70px;background:#8fabff}
.th-cols i:nth-child(3){height:100px}
.th-cols i:nth-child(4){height:56px;background:#a78bfa}
.th-line{left:30px;right:30px;top:74px;height:2px;background:#8fabff}
.th-dot{top:66px;width:18px;height:18px;border-radius:50%;background:#c4b5fd}
.th-dot.d1{left:30px}.th-dot.d2{right:30px}
.th-chart{padding:0;box-sizing:border-box;background:#0b1020;border-bottom:1px solid rgba(148,163,255,.12)}
.th-chart svg{position:static;display:block;width:100%;height:100%;overflow:hidden}
#newsletter>div{max-width:680px}

/* Soft gate (gated pieces). The text after the gate is hidden only when JavaScript runs. */
html.js .art.gated:not(.unlocked) .art-gated{display:none}
.gate{margin:32px 0 8px;background:linear-gradient(135deg,#13205a,#1e1b4b 60%,#0b1020);border:1px solid rgba(143,171,255,.35);border-radius:22px;padding:26px 28px}
html:not(.js) .gate{display:none}
.gate h2{font-size:24px;margin-top:6px}
.gate p{color:#d5dbef;font-size:16px;margin-top:10px}
.gate-k{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#c4b5fd}
.gate-f{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-top:16px}
.gate-l{flex:1 1 240px;display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:#c7d2fe}
.gate-l input{height:48px;border-radius:12px;border:1px solid rgba(199,210,254,.25);background:#0d1430;color:#fff;padding:0 14px;font-size:15px;font-family:inherit}
.gate-f .cta{height:48px;border:none;cursor:pointer;font-family:inherit;padding:0 22px}
.gate-f .cta[disabled]{opacity:.7;cursor:default}
.gate-l{order:1}.gate-f .cta{order:2}.gate-alt{order:3;height:48px;padding:0 6px;border:0;background:none;color:#e0e7ff;font:inherit;font-size:15px;text-decoration:underline;cursor:pointer}
.gate-alt[disabled]{opacity:.6;cursor:default}
.gate-limit .nl{margin-top:16px}
.art-nl{margin-top:40px;max-width:720px;width:100%;margin-inline:auto;box-sizing:border-box}
.art-nl+.art-cta{margin-top:24px}
.gate-err{flex-basis:100%;order:4;color:#fca5a5!important;margin-top:0!important;font-size:14px!important}
.gate-fine{flex-basis:100%;order:5;font-size:13px!important;color:#8b95b8!important;margin-top:0!important}
.gate-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.gate-limit .cta{display:inline-block;margin-top:16px}
.art .cta,.art .cta:hover{text-decoration:none;color:#05070f}
@media (max-width:700px){.gate{padding:22px}.gate-f .cta{width:100%}.gate-alt{width:100%}}

@media (max-width:700px){
  .art{font-size:16px}
  .art p,.art li{font-size:16px}
  .art h2{font-size:22px;margin-top:32px}
  .art figure.brief-chart{padding:18px 16px 16px}
  .art .brief-chart h3{font-size:18px}
  .art .brief-chart-plot{padding-top:16px}
  .art .brief-chart figcaption{font-size:13px}
  .art-cta{padding:22px}
  .art-cta .cta{width:100%;text-align:center;box-sizing:border-box}
  .hub-hero{padding:44px 16px 28px;gap:16px}
  .hub-top{padding:4px 16px 32px}
  .hub-nl{padding:0 16px 48px}
  .hub-feat-t{padding:26px 22px 8px}
  .hub-feat-h{font-size:27px}
  .hub-feat-d{font-size:16px}
  .hub-feat-chart{margin:16px;padding:16px 14px 12px}
  .hub-feat-art{min-height:180px}
  .hub-feat-art .r{left:24px;top:24px;width:130px;height:130px;border-width:20px}
  .hub-feat-art .b{left:180px}
  .hub-feat-art .b1{width:140px}.hub-feat-art .b2{width:110px}.hub-feat-art .b3{width:80px}.hub-feat-art .b4{width:50px}
  .hub-latest-g{grid-template-columns:1fr;gap:10px}
  .hub-sub{grid-template-columns:1fr;gap:16px}
  .hub-sub-chart{height:250px;margin:14px 14px 0;padding:14px 12px 10px}
  .hub-sub-t{padding:18px 20px 22px}
  .hub-sub-h{font-size:21px}
  .hub-latest-i{padding:14px 16px}
  .paths-row{grid-template-columns:1fr}
  .lib-card{max-width:none}
}
/* 404 page: three "where next" cards (home + two newest pieces, generated by resources/build.py) */
.nf-sec{padding:8px 0 72px}
.nf-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1080px;margin:0 auto}
.nf-card{display:flex;flex-direction:column;background:#0b1020;border:1px solid rgba(148,163,255,.16);border-radius:20px;overflow:hidden;color:#fff}
.nf-card:hover{border-color:rgba(143,171,255,.55);color:#fff}
.nf-card:focus-visible{outline:2px solid #8fabff;outline-offset:3px}
.nf-img{display:block;position:relative;overflow:hidden;aspect-ratio:1200/630;background:#0b1020;border-bottom:1px solid rgba(148,163,255,.12)}
.nf-img img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.nf-b{display:flex;flex-direction:column;gap:6px;padding:16px 18px 20px}
.nf-b .k{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#c4b5fd}
.nf-b .t{font-size:18px;font-weight:500;line-height:1.3}
.nf-b .m{font-size:14px;line-height:1.45;color:#8b95b8}
.nf-more{max-width:1080px;margin:22px auto 0;text-align:center;font-size:14px;color:#8b95b8}
.nf-more a{color:#c7d2fe;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(199,210,254,.4)}
@media (max-width:720px){.nf-cards{grid-template-columns:1fr}}
/* "Investor rules, tested": rules at a glance (ol.rule-glance), each row = icon, rule + quote, household verdict */
.art ol.rule-glance{list-style:none;padding:0;margin-top:18px;display:flex;flex-direction:column;gap:10px}
.art .rule-glance li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;margin:0;background:#0b1020;border:1px solid rgba(143,171,255,.22);border-radius:14px;padding:14px 16px}
.rule-glance .rg-i{width:44px;height:44px;border-radius:12px;background:rgba(143,171,255,.13);color:#c7d2fe;display:grid;place-items:center}
.rule-glance .rg-i svg{width:24px;height:24px}
.art .rule-glance a.rg-t{color:#fff;font-weight:700;text-decoration:none;font-size:17px;line-height:1.3;display:block}
.art .rule-glance a.rg-t:hover{text-decoration:underline}
.rule-glance .rg-n{display:block;font-size:12px;font-weight:500;letter-spacing:.4px;color:#8fabff;margin-bottom:2px}
.rule-glance .rg-q{display:block;color:#aab3cf;font-size:14px;margin-top:4px;font-style:italic}
.rule-glance .rg-v{font-size:13px;font-weight:700;padding:6px 11px;border-radius:999px;white-space:nowrap;border:1px solid}
.rule-glance .rg-v.ok{background:rgba(86,186,90,.14);color:#8ee59a;border-color:rgba(86,186,90,.5)}
.rule-glance .rg-v.cond{background:rgba(167,139,250,.14);color:#c4b5fd;border-color:rgba(167,139,250,.5)}
.rule-glance .rg-v.mis{background:rgba(251,191,36,.12);color:#fcd34d;border-color:rgba(251,191,36,.5)}
@media(max-width:600px){.art .rule-glance li{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:12px 14px}.rule-glance .rg-i{width:40px;height:40px}.rule-glance .rg-v{grid-column:2;justify-self:start}}
.rule-glance .rg-v{display:inline-flex;align-items:center;gap:6px}
