/* Stock Calc Lab 2.0 — calm, original Apple-inspired visual system. No external fonts or scripts. */
:root { --a-ink:#1d1d1f; --a-muted:#6e6e73; --a-blue:#0071e3; --a-blue-hi:#0066d6; --a-line:#e7e8ed; --a-paper:#ffffff; --a-canvas:#f5f5f7; --a-radius:26px; --a-shadow:0 12px 38px rgba(28,35,55,.055); font-synthesis:none; }
html { -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body { background:var(--a-canvas); }
a,button,input,select { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #0071e375!important;outline-offset:3px; }
::selection { background:#c7e5ff; color:#092f64; }
/* Shared document / homepage / glossary / extra-calculator header */
.g-wrap{max-width:1240px;padding-left:clamp(18px,3vw,42px);padding-right:clamp(18px,3vw,42px)}
.g-head{min-height:72px;gap:25px;border-bottom:1px solid #e9e9ee;position:relative;z-index:10}
.g-brand{font-size:19px;letter-spacing:-.065em;white-space:nowrap;color:var(--a-ink)!important;display:inline-flex;align-items:center;gap:9px}
.g-brand:before{content:'';display:inline-block;width:29px;height:29px;border-radius:10px;background:linear-gradient(140deg,#1d1d1f,#525665);box-shadow:0 4px 12px #131a2520;flex:none}
.g-head nav{gap:10px 24px;align-items:center}.g-head nav a{color:#53545a;font-weight:590;font-size:12px;padding:10px 0;white-space:nowrap;transition:color .2s}.g-head nav a:hover,.g-head nav a[aria-current=page]{color:var(--a-blue);text-decoration:none}
.kicker,.mini-label{color:var(--a-blue)!important;letter-spacing:.13em;font-size:11px;font-weight:760}
.crumb{color:#81838b;font-size:12px;margin:22px 0}.crumb a{color:#767983}
.g-article,.g-links,.calc-surface,.calc-result,.featured-explainer,.glossary-controls,.term-card{border:1px solid #eceef2!important;background:var(--a-paper);border-radius:var(--a-radius)!important;box-shadow:var(--a-shadow)}
.g-article{max-width:none}.g-article h1,.g-article h2,.g-body h2,.g-links h2{color:var(--a-ink)}.g-body{color:#484951}.lead,.g-body p{color:#575962}.g-links a,.related-tools a{border-radius:15px;transition:background .2s,transform .2s}.g-links a:hover,.related-tools a:hover{background:#eef6ff;transform:translateY(-2px);text-decoration:none}
footer{color:#85858d;border-top:1px solid #e5e5eb!important;line-height:1.85}footer a{color:#73737b!important}footer a:hover{color:var(--a-blue)!important}
/* Signature home scene */
.landing-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);align-items:center;gap:clamp(12px,4vw,65px);min-height:565px;margin-top:16px;padding:clamp(48px,8vw,110px) clamp(28px,6vw,85px);background:linear-gradient(135deg,#fff 1%,#f7f9ff 48%,#e6f2ff 100%)!important;border-radius:34px;border:1px solid #edf0f6!important;box-shadow:0 35px 80px #4a78a013}
.landing-hero:before{content:'';position:absolute;z-index:-1;right:-10%;top:-32%;width:65%;aspect-ratio:1;background:radial-gradient(circle,#9bd6ff8c 0%,#cfcfff66 36%,transparent 67%);filter:blur(27px);pointer-events:none}
.landing-hero:after{content:'';position:absolute;z-index:-1;right:20%;bottom:-50%;width:55%;aspect-ratio:1;background:radial-gradient(circle,#b1f0e23d,transparent 70%);filter:blur(35px);pointer-events:none}
.landing-hero .hero-text{position:relative;z-index:1;min-width:0}
.landing-hero h1{font-size:clamp(38px,5.3vw,70px);letter-spacing:-.076em;line-height:1.15;color:var(--a-ink);margin:20px 0 24px;word-break:keep-all}
.landing-hero h1 span{color:var(--a-blue)}.landing-hero p{font-size:clamp(15px,1.45vw,18px);line-height:1.8;color:#676b74;max-width:510px;margin-bottom:21px}
.hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;padding:14px 22px;margin-top:12px;background:var(--a-blue)!important;font-size:14px;font-weight:700;color:white!important;transition:transform .2s,box-shadow .2s,background .2s;text-decoration:none;box-shadow:0 6px 17px #0071e32e}
.hero-cta:hover{background:#005fc4!important;transform:translateY(-2px);box-shadow:0 11px 24px #0071e341;text-decoration:none}
.hero-secondary{font-size:13px;font-weight:650;color:var(--a-blue);margin-left:17px;white-space:nowrap}.hero-secondary:hover{text-decoration:underline}
.hero-caption{font-size:12px!important;color:#8b8c95!important;margin-top:22px}
.hero-visual{min-width:0;position:relative;perspective:950px;filter:drop-shadow(0 22px 35px #637cad20)}
.hero-visual .preview-window{position:relative;background:#ffffffdb;border:1px solid #ffffffd9;box-shadow:0 24px 80px #34527e26, inset 0 1px 0 #fff;backdrop-filter:blur(18px);border-radius:30px;padding:clamp(19px,3vw,32px);transform:rotate(-3deg);transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.hero-visual:hover .preview-window{transform:rotate(-1deg) translateY(-8px)}
.preview-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f0f4;padding-bottom:17px;font-size:12px;color:#999ba3}
.preview-dots{display:flex;gap:6px}.preview-dots i{height:8px;width:8px;border-radius:50%;background:#ebedf2}.preview-dots i:first-child{background:#b4d9fa}
.preview-overline{display:block;margin:31px 0 7px;color:#767882;font-size:12px;font-weight:640}
.preview-value{color:#19191e;font-weight:810;letter-spacing:-.07em;font-variant-numeric:tabular-nums;font-size:clamp(32px,3.9vw,56px);line-height:1.2;white-space:nowrap}
.preview-value small{font-size:.35em;letter-spacing:-.02em;margin-left:5px;color:#6d717b}
.preview-change{display:inline-flex;margin-top:11px;color:#087d65;font-size:12px;background:#e5f8f0;border-radius:10px;padding:7px 10px;font-weight:700}
.preview-graph{width:100%;height:auto;display:block;margin-top:12px;overflow:visible}
.preview-graph path.line{stroke:#0071e3;stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}.preview-graph path.area{fill:url(#preview-gradient)}
.preview-stats{border-top:1px solid #edf0f5;display:flex;gap:10px;padding-top:17px;justify-content:space-between}.preview-stats div{min-width:0}.preview-stats span{font-size:11px;color:#9699a1;display:block;margin-bottom:6px}.preview-stats strong{font-size:clamp(15px,1.5vw,19px);white-space:nowrap;font-variant-numeric:tabular-nums;color:#343b46}
.preview-float{position:absolute;right:-12px;top:-22px;z-index:2;background:#252a35;color:#fff;font-weight:700;font-size:12px;box-shadow:0 14px 35px #161d2930;border:1px solid #ffffff23;padding:11px 15px;border-radius:14px;transform:rotate(6deg)}
.section-head h2{color:var(--a-ink);font-size:clamp(28px,3.3vw,42px);letter-spacing:-.068em;line-height:1.25}.section-head p{font-size:15px;color:#767781;margin-top:11px;margin-bottom:29px}
.landing-section{padding:82px 0 28px}.landing-section + .landing-section{padding-top:80px}
.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tool-card{position:relative;overflow:hidden;min-height:225px;border:1px solid #eeeef2;border-radius:25px;background:white;padding:26px;gap:11px;box-shadow:0 6px 19px #1b344106;transition:transform .25s,box-shadow .25s,border .25s}
.tool-card:hover{transform:translateY(-5px);border-color:#cde6ff;box-shadow:0 19px 38px #4e70a019}.tool-icon{color:#056bc9;background:#edf6ff;font-size:24px;border-radius:14px;width:50px;height:50px;line-height:50px}.tool-card strong{font-size:19px;color:#202126;letter-spacing:-.045em;margin-top:5px}.tool-card>span:not(.tool-icon){font-size:13px;line-height:1.75;color:#7a7b86}.tool-card em{color:var(--a-blue);font-weight:760}
.guide-list a{border-radius:19px;background:#fff;border-color:#ebedf3;padding:22px;min-height:124px;transition:border .2s,transform .2s,box-shadow .2s}.guide-list a:hover{border-color:#b9dcfd;box-shadow:var(--a-shadow);transform:translateY(-2px)}.guide-list strong{color:#28292f;font-size:16px}.guide-list .arrow{color:var(--a-blue)}
.glossary-promo{background:linear-gradient(130deg,#f5f8ff,#edf9ff);border:1px solid #e6ecfa;border-radius:28px;margin:60px 0 28px;padding:clamp(27px,5vw,48px)!important}
.glossary-promo .quick-links{font-size:13px;color:#7c8090}.glossary-promo .quick-links a{color:#056ac9}
.landing-trust{border:1px solid #e7e8ef;background:#f7f8fa;border-radius:23px;padding:34px;margin:50px 0 65px;color:#666974}.landing-trust h2{color:#34383f}
/* Glossary */
.glossary-hero{padding:clamp(40px,6vw,85px) clamp(26px,5vw,65px)!important;border-radius:30px;background:linear-gradient(120deg,#fff,#f5f8ff 63%,#e6f3ff)!important;margin:18px 0 28px;border:1px solid #eef0f7;overflow:hidden;position:relative}
.glossary-hero:after{content:'PBR';position:absolute;right:5%;top:9%;font-size:clamp(75px,11vw,160px);font-weight:900;letter-spacing:-.1em;color:#0071e30c;pointer-events:none}
.glossary-hero h1{color:var(--a-ink);font-size:clamp(34px,5vw,64px);letter-spacing:-.075em;line-height:1.2}.glossary-hero h1 span{color:var(--a-blue)}.glossary-hero p{color:#6c6f77;max-width:640px}.pbr-shortcut{background:var(--a-blue);border-radius:99px;padding:13px 20px;transition:transform .2s}.pbr-shortcut:hover{background:#005fc4;transform:translateY(-2px);text-decoration:none}
.featured-explainer{padding:clamp(22px,4vw,46px);gap:36px;box-shadow:0 16px 40px #182b4310}.feature-copy h2{color:var(--a-ink);font-size:clamp(23px,2.6vw,33px);line-height:1.4}.feature-copy p{color:#62656f}.ratio-explainer{background:linear-gradient(150deg,#f6f9fd,#edf3ff);border:1px solid #eaf0f9;border-radius:20px;padding:25px}.fill.bps{background:#a8c9ed}.fill.price{background:linear-gradient(90deg,#0071e3,#52a9ff)}.ratio-formula b{color:var(--a-blue)}
.glossary-controls{padding:clamp(20px,3vw,30px)}.search-title h2{font-size:24px;color:var(--a-ink)}.search-field{border-radius:15px;border-color:#e1e4eb;background:#f6f7fa;padding:7px 14px}.search-field input{font-size:16px!important;min-height:48px}.search-field:focus-within{border-color:#0071e3;box-shadow:0 0 0 4px #0071e31a}.category-list button{font-size:12px;border-color:#e3e6eb;padding:10px 15px}.category-list button.selected{background:#1d1d1f;border-color:#1d1d1f}
.term-list{gap:17px}.term-card{padding:26px;transition:transform .2s,box-shadow .2s}.term-card:hover{transform:translateY(-2px);box-shadow:0 16px 39px #192c4611}.term-top h2{color:var(--a-ink)}.category-chip{color:#12649b;background:#eaf4ff}.term-meaning{color:#3d444f}.term-example{background:#f3f7ff;border-radius:15px;padding:17px}.term-example strong{color:#006bc9}.term-example p{color:#43576b}.term-caution b{color:#a06126}.glossary-outro{background:#eff6ff;border-radius:23px;padding:32px}.related-tools a{background:white;border-color:#e0ecf9;color:#0464bd}
/* New calculator cards */
.calculator-heading{padding:40px 0 33px}.calculator-heading h1{font-size:clamp(32px,4.2vw,56px);color:var(--a-ink);letter-spacing:-.07em;line-height:1.17}.calculator-heading>p{color:#747680;font-size:16px;line-height:1.75;max-width:720px}
.calc-layout{gap:20px}.calc-surface,.calc-result{padding:clamp(22px,3vw,36px)}.calc-result{background:linear-gradient(155deg,#fff,#f7faff)}.section-mini h2{color:#30313a}.step{background:#eaf4ff;color:#086fcb;border-radius:11px}.calc-field input{height:53px;border-color:#dee2ea;background:#f9fafc;border-radius:14px}.calc-field input:focus{border-color:#0071e3;box-shadow:0 0 0 4px #0071e317}.calculate-btn{background:var(--a-blue)}.clear-btn{background:#f4f4f6;color:#494e56}.hero-result{background:linear-gradient(128deg,#e9f3ff,#f5faff);border:1px solid #dcecff;border-radius:22px;padding:clamp(20px,3vw,32px)}.result-value{color:var(--a-blue);font-size:clamp(32px,3.4vw,47px)}.result-label{color:#386797}.result-reading{color:#51749c}.small-result{border-color:#eef0f5;border-radius:17px}.result-explanation{background:#f5f7fb;color:#515d6f}
/* Shared educational pages */
.g-article{padding:clamp(25px,5.5vw,65px);margin-top:26px}.g-article h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.064em}.g-links{padding:clamp(20px,3vw,35px)}.g-grid a{background:#f8fafe;border-radius:15px}
/* Existing side navigation and result UI */
body.light,body.dark{--bg:#f5f5f7;--side:#fff;--panel:#fff;--panel2:#f5f8ff;--border:#eaecf1;--faint:#f6f7fa;--text:#1d1d1f;--sub:#5c616d;--muted:#777b85;--blue:#0071e3;--blue-soft:#e9f3ff;--teal:#087d6f;--teal-soft:#e8f6f2;--violet:#6d66ae;--shadow:0 10px 35px #202b420c}
body.dark{--bg:#141519;--side:#1e2027;--panel:#21242c;--panel2:#2b3040;--border:#343843;--faint:#292d37;--text:#f6f6f7;--sub:#c5c9d3;--muted:#a6adbb;--blue:#8bc4ff;--teal:#7fe2ca;--violet:#c9b4ff;background:var(--bg);color:var(--text)}
.sidebar{width:236px;min-width:236px;border-right:1px solid var(--border);padding:27px 12px;background:var(--side)}.brand{padding-bottom:23px}.brand-icon{background:#edf4ff;color:#0071e3;border-radius:13px}.brand strong{color:var(--text);font-size:16px}.brand span{font-size:9px;letter-spacing:.16em}
.sidebar-title{font-size:10px;letter-spacing:.1em;color:var(--muted);padding-top:13px}.sidebar-title.separated{padding-top:21px}
.nav-item{border-radius:11px!important;color:var(--sub)!important;padding:10px 11px!important;font-size:12px!important;transition:background .18s,transform .18s}
.nav-item:hover{background:var(--faint);transform:translateX(2px)}.nav-item.selected{background:#e9f3ff!important;color:#056acb!important;border-color:transparent!important}.nav-item.selected .nav-icon{color:#0071e3}.nav-badge{background:#edf4ff;color:#0676ce;letter-spacing:0}.side-note{background:var(--faint);border:1px solid var(--border);border-radius:14px}
.main-wrap{width:calc(100% - 236px)}.topbar{background:#ffffffd9;border-bottom:1px solid #ebedf1;backdrop-filter:saturate(180%) blur(19px)}.top-chip{background:#f6f7f9}.theme-btn,.mobile-menu{border-radius:12px}
body.light main{padding-top:48px}.headline{margin-bottom:27px}.headline:before{background:radial-gradient(circle,#cae6ff86,transparent 67%);filter:blur(25px)}.headline h1{font-size:clamp(32px,3.8vw,56px);letter-spacing:-.073em;line-height:1.18;color:var(--text)}.headline p{font-size:15px;color:var(--sub)}.eyebrow{color:var(--blue)}.new-pill{background:#eaf4ff;color:#096ec8;border-color:#d7e9ff}
.panel,.education-panel,.related-panel{background:var(--panel);border:1px solid var(--border);border-radius:24px!important;box-shadow:var(--a-shadow);padding:clamp(20px,2.2vw,32px)}
.metric-ribbon{border-color:var(--border);border-radius:22px}.metric-ribbon>div{padding:23px}.workflow-tip{background:#eff6ff;border:1px solid #e0ecff;color:#456683}.workflow-icon{background:#dfeeff;color:#006fd1}.workflow-tip strong{color:#205f99}
.panel-heading h2{font-size:18px}.head-icon.blue{background:#eaf4ff;color:var(--blue)}.head-icon.violet{background:#f0edff;color:#7d6fcb}
.field input,.field select,.chart-average-input input,.csv-dialog textarea{background:#f9fafc;border-color:#dfe3ec;border-radius:13px;font-size:16px;min-height:50px}.field input:focus{border-color:#0071e3;box-shadow:0 0 0 4px #0071e31c}
.quick-row button{background:var(--faint);border-color:var(--border);border-radius:12px;padding:13px 3px}.quick-row button.active{color:#006ad1;background:#eaf4ff;border-color:#bcdafa}.change-pill{background:#eaf4ff;color:#006dcc}.segmented button.selected{color:var(--blue)}
.target-box{background:var(--faint);border-radius:17px}.target-row button,.primary-btn{background:#0071e3!important;border-radius:12px}.big-result{background:linear-gradient(125deg,#e8f3ff,#f7fbff)!important;border-color:#dcecff;border-radius:20px;padding:27px}.big-result>span,.big-result small,.big-result p{color:#4a6e94!important}.big-result strong{color:#006bd1!important;font-weight:820;letter-spacing:-.075em}.big-reading{color:#3a76b5}.result-status{background:#eef6ff;color:#376ea3;border-color:#d7e8f7}.before-after{background:var(--faint);border-radius:18px}.simple-results>div{background:#f8f9fc;border-radius:16px}.chart-container{border-radius:20px;background:#fff!important}.chart-tabs a.selected{color:#006fd1;border-color:#b9d9fc;background:#eaf4ff}.data-badge{border-radius:12px}.help-note{border-radius:20px}.related-links a{border-radius:14px}.footer{background:var(--panel);border-top:1px solid var(--border)}
/* Make dark mode a true, readable intentional alternate */
body.dark .nav-item.selected{background:#173b59!important;color:#acd8ff!important}body.dark .big-result{background:linear-gradient(140deg,#223c55,#2c3345)!important;border-color:#3d5670}body.dark .big-result strong{color:#9bcfff!important}body.dark .big-result>span,body.dark .big-result small,body.dark .big-result p{color:#c6dff7!important}body.dark .topbar{background:#222631e8;border-color:var(--border)}body.dark .chart-container{background:#242a35!important}body.dark .quick-row button.active,body.dark .chart-tabs a.selected{background:#213b58;border-color:#3a6283;color:#a4d5ff}body.dark .simple-results>div{background:#2b3040}body.dark .field input,body.dark .field select{background:#292e3a;border-color:#434958;color:#f8f9fd}body.dark .workflow-tip{background:#243749;border-color:#34546b;color:#c1d9f4}
/* Neutral admin surfaces */
body.admin-ui{background:#f5f5f7}
/* Responsive */
@media(max-width:1110px){.landing-hero{grid-template-columns:1fr 1fr;min-height:500px;padding:50px 38px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.sidebar{position:fixed;width:255px;min-width:255px}.main-wrap{width:100%}.mobile-scrim:not(.hidden){backdrop-filter:blur(4px)}.calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.landing-hero{grid-template-columns:1fr;gap:45px;padding:49px 29px 42px;min-height:unset}.landing-hero .hero-visual{width:min(100%,440px);margin:0 auto}.hero-visual .preview-window{transform:rotate(-1.5deg)}.landing-hero h1{font-size:clamp(38px,8.3vw,61px)}.landing-section{padding:57px 0 20px}.section-head h2{font-size:31px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g-head{flex-wrap:wrap;padding:12px 0;gap:4px}.g-head nav{width:100%;overflow-x:auto;flex-wrap:nowrap;gap:22px;scrollbar-width:none}.g-head nav::-webkit-scrollbar{display:none}.g-head nav a{font-size:12px}.glossary-hero{padding:43px 25px!important}.calc-grid{grid-template-columns:1fr}.headline h1{font-size:clamp(30px,7vw,44px)}.result-panel,.panel{border-radius:20px!important}}
@media(max-width:560px){.g-wrap{padding:0 15px}.landing-hero{margin-top:10px;border-radius:27px;padding:41px 22px 30px}.landing-hero h1{font-size:clamp(38px,10.4vw,54px)}.hero-secondary{display:inline-block;margin:16px 0 0}.preview-window{border-radius:24px!important}.preview-float{right:-4px;top:-18px;font-size:11px}.section-head h2{font-size:29px}.tool-grid,.guide-list,.term-list{grid-template-columns:1fr}.tool-card{min-height:205px;padding:24px}.glossary-promo{margin-top:32px}.featured-explainer{grid-template-columns:1fr}.glossary-hero h1{font-size:clamp(33px,8.7vw,52px)}.glossary-controls{padding:18px}.term-card{padding:21px}.calculator-heading h1{font-size:clamp(32px,8vw,42px)}.calc-fields{grid-template-columns:1fr}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-ribbon strong{font-size:19px}.big-result strong{font-size:clamp(31px,8vw,41px)}.footer,.footer *,footer,footer *{overflow-wrap:normal;word-break:keep-all;min-width:0}main{min-width:0}}
@media(max-width:360px){.landing-hero h1{font-size:35px}.preview-stats strong{font-size:14px}.tool-card{padding:21px}.g-head nav{gap:14px}.panel{padding:15px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Original, lightweight brand glyph: upward path, not an Apple mark. */
.g-brand:before{background-color:#222936;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect width='44' height='44' rx='13' fill='%23202631'/%3E%3Cpath d='M10 29l8-8 6 4 10-14' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M27 11h7v7' stroke='%2389ceff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");background-size:100% 100%;background-position:center;background-repeat:no-repeat}
/* Fine focus and hover states for touch + keyboard visitors. */
@media(hover:hover){.term-card:hover,.tool-card:hover,.featured-explainer:hover{box-shadow:0 19px 46px #243b6112}}
@media(max-width:620px){.g-head nav{padding-bottom:3px}.landing-hero .preview-window{padding:22px}.preview-graph{margin-top:5px}.hero-caption{line-height:1.6}.term-example{padding:16px}}
