/* Sanvestano's Apple chart and conditional investment scenarios. */
.apple-elliott{--ae-gold:#8a6728;--ae-copy:#5d6458;--ae-green:#65745c;min-width:0;max-width:100%;margin-top:32px;color:var(--ink);overflow-wrap:anywhere}
.apple-elliott *, .apple-elliott *::before,.apple-elliott *::after{box-sizing:border-box}
.apple-elliott [hidden]{display:none!important}
.apple-elliott p{font-size:14px;line-height:1.85;color:var(--ae-copy)}
.apple-elliott a{color:var(--ae-gold);text-decoration:underline;text-underline-offset:3px}
.ae-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;padding-top:29px;border-top:1px solid #e3dccb;margin-bottom:21px}
.ae-intro>*{min-width:0;max-width:100%}
.ae-intro>div{max-width:790px}
.ae-kicker{display:block;text-transform:uppercase;letter-spacing:1.3px;font-size:11px;line-height:1.8;font-weight:600;color:var(--ae-gold);margin-bottom:11px}
.ae-intro h3,.ae-level-heading h3,.ae-investment-bridge h3{font:normal clamp(25px,2.8vw,33px)/1.3 var(--serif);letter-spacing:-.65px;margin:0 0 13px}
.ae-intro p{margin:0}
.ae-horizon-badge{flex:0 0 auto;border:1px solid #dfd3b8;border-radius:9px;padding:13px 17px;background:#faf6ed;color:var(--ae-copy);font-size:11px;line-height:1.8;text-align:center}
.ae-horizon-badge strong{display:block;color:var(--ae-gold);font-size:12px;font-weight:600}
.ae-timeframe-note{padding:17px 21px;border-left:3px solid var(--gold);background:#f5f0e4;border-radius:0 8px 8px 0;margin:0 0 26px}
.ae-timeframe-note>strong{font-size:14px;font-weight:600;color:#6f5527}
.ae-timeframe-note p{margin:7px 0 0;font-size:13px}
.ae-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-width:570px;padding:5px;background:#f0eee7;border:1px solid #e4ded0;border-radius:10px;margin:0 0 23px}
.ae-switch button{min-width:0;max-width:100%;padding:11px 16px;border:1px solid transparent;border-radius:7px;font-size:13px;line-height:1.7;font-weight:500;background:transparent;color:var(--ae-copy);overflow-wrap:anywhere}
.ae-switch button[aria-pressed=true]{background:white;border-color:#d9c9a8;color:var(--ae-gold);box-shadow:0 2px 6px #24292108}
.ae-switch button:hover{color:var(--ae-gold)}
.ae-switch button:focus-visible,.ae-chart-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.ae-scenario-region,.ae-scenario-view{min-width:0;max-width:100%}
.ae-scenario-title{font-size:17px;line-height:1.6;font-weight:500;margin:0 0 15px}
.ae-scenario-intro{max-width:900px;margin:0 0 20px}
.ae-zone-summary{display:flex;align-items:center;gap:19px;padding:18px 22px;margin-bottom:20px;background:#f8f3e6;border:1px solid #ded3bb;border-radius:8px}
.ae-zone-summary>strong{font:normal 29px/1.4 var(--serif);color:var(--ae-gold);white-space:nowrap}
.ae-zone-summary>span{font-size:12px;line-height:1.7;color:var(--ae-copy)}
.ae-figure{margin:0 0 23px;min-width:0;max-width:100%;border:1px solid #e2dccd;border-radius:11px;background:linear-gradient(140deg,#fcfbf7,#fff);overflow:hidden}
.ae-analysis-image{display:block;width:100%;height:auto;max-width:100%;background:#101010}
.apple-elliott .ae-image-note{font-size:12px;line-height:1.8;margin:-8px 0 24px;max-width:930px}
.ae-lightbox{width:min(96vw,1680px);max-width:96vw;max-height:92vh;padding:20px;border:1px solid #d9c9a8;border-radius:12px;background:#faf9f6;color:var(--ink);box-sizing:border-box;overflow:auto}
.ae-lightbox::backdrop{background:#11150fbd}
.ae-lightbox:not([open]){display:none}
.ae-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.ae-lightbox-head h3{font:normal 25px/1.4 var(--serif);margin:0}
.ae-lightbox-head button{flex-shrink:0}
.ae-lightbox-scroll{overflow:auto;max-width:100%;max-height:73vh;border-radius:7px;background:#101010;overscroll-behavior:contain}
.ae-lightbox-scroll img{display:block;width:100%;min-width:1000px;max-width:none;height:auto}
.ae-lightbox-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.ae-lightbox>p{font-size:12px;margin:13px 0 0}
.apple-elliott .ae-schema-label{font-size:10px;line-height:1.7;letter-spacing:1px;color:var(--ae-gold);margin:17px 22px 0;font-weight:600}
.ae-chart-scroll{min-width:0;max-width:100%;padding:15px 15px 0;overflow-x:auto;overscroll-behavior-x:contain}
.ae-chart{display:block;width:100%;max-width:100%;height:auto;overflow:hidden}
.ae-chart-grid{fill:none;stroke:#ede8dc;stroke-width:1}
.ae-impulse,.ae-correction,.ae-possibility,.ae-uncertain{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ae-impulse{stroke:var(--ae-gold)}
.ae-correction{stroke:var(--ae-green)}
.ae-possibility{stroke:var(--ae-gold);stroke-dasharray:5 9;opacity:.65}
.ae-uncertain{stroke:var(--ae-green);stroke-dasharray:5 9;opacity:.6}
.ae-fork{fill:#fff;stroke:var(--ae-gold);stroke-width:2}
.ae-wave-label{font:600 23px 'Segoe UI',Arial,sans-serif;fill:var(--ae-gold);text-anchor:middle}
.ae-correction-label{fill:var(--ae-green)}
.ae-diagram-note{font:400 18px 'Segoe UI',Arial,sans-serif;fill:#6b715f;text-anchor:middle}
.ae-diagram-section{font:500 15px 'Segoe UI',Arial,sans-serif;fill:#7b7d6f;letter-spacing:1.5px}
.ae-figure figcaption{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 22px;padding:15px 0 18px;border-top:1px solid #eae5d8;font-size:12px;line-height:1.85;color:var(--ae-copy)}
.ae-figure figcaption>div{min-width:0}
.ae-figure figcaption span{display:block}
.ae-figure figcaption button{flex-shrink:0;white-space:normal}
.ae-figure figcaption strong{font-weight:600;color:#6e592f}
.ae-reading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:32px}
.ae-reading-grid article{min-width:0;padding:22px 22px 24px;border:1px solid #e5dfd1;border-radius:9px;background:#fcfbf7}
.ae-reading-grid article>span{display:block;font-size:11px;letter-spacing:.3px;line-height:1.7;color:var(--ae-gold);margin-bottom:12px}
.ae-reading-grid h4{font:normal 22px/1.35 var(--serif);letter-spacing:-.4px;margin:0 0 13px}
.ae-reading-grid p{font-size:13px;margin:0}
.ae-level-heading{max-width:890px}
.ae-level-heading h3{font-size:28px}
.ae-level-heading p{font-size:13px;margin:0 0 21px}
.ae-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:28px}
.ae-levels article{min-width:0;padding:22px;border:1px solid #ded3bd;border-radius:9px;background:#f8f4e9}
.ae-levels article>span{display:block;font-size:11px;line-height:1.7;letter-spacing:.3px;color:var(--ae-gold);margin-bottom:12px}
.ae-levels article>strong{display:block;font:normal clamp(27px,3vw,33px)/1.3 var(--serif);letter-spacing:-.7px;margin-bottom:12px}
.ae-levels strong small{font:500 11px 'Segoe UI',Arial,sans-serif;color:var(--ae-gold);letter-spacing:.5px}
.ae-levels p{font-size:13px;margin:0}
.ae-investment-bridge{display:flex;justify-content:space-between;align-items:center;gap:27px;border-top:1px solid #e4ddcc;padding:25px 0 22px;margin-top:5px}
.ae-investment-bridge>div{min-width:0;max-width:755px}
.ae-investment-bridge h3{font-size:26px}
.ae-investment-bridge p{font-size:13px;margin:0}
.ae-investment-bridge .button{flex-shrink:0;max-width:100%;white-space:normal;text-align:center;line-height:1.7}
.ae-method{border-top:1px solid #e4ddcc;border-bottom:1px solid #e4ddcc;margin:0;padding:16px 0}
.ae-method summary{position:relative;list-style:none;cursor:pointer;color:var(--ink);font-size:13px;line-height:1.7;font-weight:500;padding-right:30px}
.ae-method summary::-webkit-details-marker{display:none}
.ae-method summary::after{content:'+';position:absolute;right:3px;top:0;font-size:21px;line-height:1.2;color:var(--ae-gold);font-weight:400}
.ae-method[open] summary::after{content:'−'}
.ae-method summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:3px}
.ae-method p{font-size:13px;max-width:900px;margin:16px 0 0}
@media(max-width:850px){.ae-reading-grid{grid-template-columns:1fr}.ae-reading-grid article{padding:21px 23px}.ae-reading-grid h4{font-size:22px}.ae-investment-bridge{align-items:flex-start;flex-direction:column;gap:20px}.ae-intro{gap:19px}.ae-levels{gap:11px}.ae-levels article{padding:20px 17px}}
@media(max-width:620px){.ae-intro{flex-direction:column;gap:15px}.ae-horizon-badge{align-self:flex-start;text-align:left}.ae-levels{grid-template-columns:1fr}.ae-levels article{padding:21px 22px}.ae-levels article>strong{font-size:32px}.ae-switch{max-width:100%;grid-template-columns:1fr}.ae-switch button{text-align:left;padding:11px 15px}.ae-chart{min-width:580px}.ae-chart-scroll{padding:12px 9px 0}.ae-figure figcaption{margin:0 16px}.ae-timeframe-note{padding:16px 17px}.ae-intro h3{font-size:29px}.ae-level-heading h3{font-size:27px}}
@media(prefers-reduced-motion:reduce){.apple-elliott *{scroll-behavior:auto}}
@media(max-width:620px){.ae-figure figcaption{flex-direction:column;align-items:flex-start;gap:13px}.ae-zone-summary{flex-direction:column;align-items:flex-start;gap:5px;padding:17px 19px}.ae-lightbox{padding:14px}.ae-lightbox-head{flex-direction:column;align-items:flex-start;gap:12px}.ae-lightbox-head h3{font-size:22px}.ae-lightbox-head button{font-size:12px;padding:9px 12px}.ae-lightbox-scroll{max-height:62vh}}
