/* pwp-authored-additional-v1-20261028: technical foundation only */
@layer pwp-runtime-foundation {
  :root {
    --bg:#020617; --text:#F8FAFC;
    --surface:#0E1223; --text-muted:#94A3B8;
    --primary:#0F172A; --primary-fg:#FFFFFF;
    --border:#334155;
  }
  *, *::before, *::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { margin:0; background:var(--bg); color:var(--text); }
  img, video { max-inline-size:100%; block-size:auto; }
  button, input, select, textarea { font:inherit; }
  button, summary { cursor:pointer; }
  :where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid currentColor; outline-offset:4px; }
  .skip { position:fixed; inset-block-start:-10rem; inset-inline-start:1rem; z-index:10000; padding:.75rem; background:var(--bg); color:var(--text); }
  .skip:focus { inset-block-start:1rem; }
  /* Legal prose is a separate utility; never constrain the author's main site. */
  .legal-container { max-inline-size:76ch; margin-inline:auto; padding:clamp(1rem,4vw,3rem); }
  .legal-body { line-height:1.7; overflow-wrap:anywhere; }
  .legal-body p + p, .legal-body section + section { margin-block-start:1.25em; }
  .legal-body table { display:block; overflow-x:auto; max-inline-size:100%; }
  .legal-body h1, .legal-body h2, .legal-body h3, .legal-title { line-height:1.2; }
  .cookie-banner { position:fixed; inset-inline:1rem; inset-block-end:1rem; z-index:9999; max-inline-size:34rem; padding:1rem; border:1px solid var(--border); background:var(--bg); color:var(--text); }
  .cookie-text { font:14px/1.5 system-ui,sans-serif; }
  .cookie-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-block-start:.75rem; }
  .cookie-actions button { min-block-size:44px; padding:.6rem 1rem; border:1px solid var(--border); background:var(--surface); color:var(--text); }
  .cookie-actions [data-action="accept-cookie"] { background:var(--primary); color:var(--primary-fg); }
}
/* Required state, not a visual layout. Expanded pages may be grid/flex/block. */
[hidden], .cookie-banner.hidden { display:none !important; }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* === AUTHOR-OWNED SITE STYLES === */
:root{--ink:#182e2b;--muted:#586760;--paper:#f7f8f2;--white:#fff;--line:#d7ded4;--green:#dce8c8;--orange:#e57040;--deep:#193d34;--radius:5px;--body:"Manrope",sans-serif;--display:"Source Serif 4",serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.65}
a{color:inherit;text-underline-offset:4px}
button,input{font:inherit}
a,button,input,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #b64e26;outline-offset:5px}
[hidden]{display:none!important}
.skip{position:absolute;top:-100px;left:20px;z-index:20;padding:12px;background:white}
.skip:focus{top:10px}
.site-header{border-bottom:1px solid var(--line);padding:25px 5%;display:flex;align-items:center;justify-content:space-between;gap:28px;background:var(--paper)}
.brand{text-decoration:none;display:inline-flex;flex-direction:column;line-height:1.05}
.brand strong{font-size:25px;font-weight:800;letter-spacing:-1.2px}
.brand span{font-size:11px;letter-spacing:3.9px;margin-top:8px}
.header-links{display:flex;align-items:center;gap:30px}
.header-links>a,.topic-menu>summary{font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
.header-links>a:hover,.footer-links a:hover{text-decoration:underline}
.topic-menu{position:relative}
.topic-menu>summary{padding:8px 0}
.topic-menu nav{position:absolute;right:0;top:45px;width:280px;padding:12px;background:var(--white);border:1px solid var(--line);z-index:10;box-shadow:0 12px 25px #182e2b12}
.topic-menu nav a{display:block;text-decoration:none;padding:12px}
.topic-menu nav a:hover{background:var(--green)}
.languages{display:flex;gap:10px;font-size:12px;border-left:1px solid var(--line);padding-left:24px}
.languages a[aria-current]{font-weight:800}
.wrap{width:90%;max-width:1380px;margin-inline:auto}
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:7%;align-items:center;padding-block:75px 85px}
.kicker{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;margin:0 0 24px}
.kicker:before{content:"";width:9px;height:9px;background:var(--orange);border-radius:50%}
h1,h2,h3,p{margin-top:0}
h1,h2,.large-number{font-family:var(--display);font-weight:500;letter-spacing:-1.7px}
h1{font-size:clamp(46px,5.7vw,85px);line-height:1.04;margin-bottom:27px}
h1 em{font-weight:400;color:#4e7056}
.hero-copy>p:not(.kicker){max-width:480px;color:var(--muted);font-size:18px}
.text-link{display:inline-flex;gap:20px;align-items:center;font-size:14px;font-weight:700;text-decoration:none;border-bottom:1px solid var(--ink);padding:5px 0}
.text-link:hover{color:#a2411e}
.hero-copy .text-link{margin-top:14px}
.calculator{background:var(--green);padding:30px 34px;border-radius:var(--radius)}
.calc-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:8px}
.calc-heading h2{font-family:var(--body);font-size:22px;letter-spacing:-.7px;margin:0;font-weight:700}
.calc-icon{font-size:28px;font-weight:400}
.calc-intro{font-size:12px;color:#465b46;margin-bottom:24px}
.calc-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #b5c6a8}
.calc-row label{font-size:14px}
.money-input{display:flex;align-items:center;gap:8px;flex-shrink:0}
.money-input input{width:110px;padding:7px 10px;text-align:right;border:1px solid #a8ba9e;background:#f6f9ef;color:var(--ink);border-radius:2px;font-weight:600}
.money-input span{font-size:13px}
.calc-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:22px}
.calc-result label{font-size:14px}
.calc-result output{font-size:35px;font-family:var(--display);letter-spacing:-1px;white-space:nowrap}
.calc-note{font-size:11px;line-height:1.6;margin:15px 0 0;color:#465b46}
.result-negative{color:#982f1c}
.principle-band{background:var(--deep);color:#eef3df;padding:27px 5%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px}
.principle{display:flex;gap:17px;align-items:baseline}
.principle span{color:#bcccae;font-family:var(--display);font-size:24px}
.principle p{margin:0;font-size:14px}
.learning{padding-block:75px 85px}
.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:baseline;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:32px}
.section-heading h2{font-size:39px;line-height:1.15;margin:0}
.section-heading p{font-size:13px;color:var(--muted);margin:0}
.learning-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:45px}
.feature-story{display:block;text-decoration:none}
.feature-story img{display:block;width:100%;height:270px;object-fit:cover;border-radius:var(--radius);margin-bottom:23px}
.topic-tag{font-size:12px;color:var(--muted);display:block;margin-bottom:10px}
.feature-story h3,.story-row h3{font-size:24px;line-height:1.3;letter-spacing:-.7px;margin-bottom:12px}
.feature-story p,.story-row p{font-size:14px;color:var(--muted);max-width:490px}
.feature-story:hover h3,.story-row:hover h3{text-decoration:underline;text-underline-offset:5px}
.story-row{display:block;text-decoration:none;padding:4px 0 26px;border-bottom:1px solid var(--line);margin-bottom:27px}
.story-row:last-child{margin-bottom:0}
.arrow{font-size:22px}
.editorial-note{border-left:3px solid var(--orange);padding-left:21px;margin-top:28px;font-size:13px;color:var(--muted)}
.page-article{padding:45px 0 85px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:45px}
.article-head{max-width:1000px;padding-bottom:38px;border-bottom:1px solid var(--line)}
.article-head h1{font-size:clamp(43px,5vw,69px);max-width:940px;margin-bottom:24px}
.article-head .intro{font-size:20px;color:var(--muted);max-width:790px;margin-bottom:0}
.article-layout{display:grid;grid-template-columns:220px minmax(0,740px);gap:7%;padding-top:40px}
.article-aside{font-size:13px;color:var(--muted)}
.article-aside strong{color:var(--ink);display:block;margin-bottom:10px}
.article-aside p{margin-bottom:24px}
.prose h2{font-family:var(--body);font-size:25px;letter-spacing:-.8px;line-height:1.3;margin:36px 0 16px;font-weight:700}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{font-size:16px;line-height:1.85}
.prose ul,.prose ol{padding-left:23px}
.prose li{padding-left:6px;margin-bottom:9px}
.example{background:#e8edde;padding:25px 28px;margin:28px 0;border-radius:var(--radius)}
.example p:last-child{margin-bottom:0}
.example strong{display:block;margin-bottom:8px}
.data-table{width:100%;border-collapse:collapse;margin:22px 0;font-size:14px}
.data-table th,.data-table td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}
.data-table th:last-child,.data-table td:last-child{text-align:right}
.source-note{font-size:13px!important;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.next-read{display:flex;justify-content:space-between;gap:20px;margin-top:45px;padding-top:25px;border-top:1px solid var(--line);font-weight:700;font-size:14px}
.contact-view{padding:65px 0 90px}
.contact-head{max-width:850px}
.contact-head h1{font-size:clamp(46px,6vw,76px)}
.contact-head>p{max-width:630px;color:var(--muted);font-size:19px}
.contact-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;margin-top:50px}
.contact-panel{background:var(--green);padding:35px}
.contact-panel h2{font-size:32px}
.contact-panel>a{display:block;overflow-wrap:anywhere;margin-bottom:15px;font-weight:600}
.contact-panel p{font-size:14px;margin:25px 0 0}
.contact-details h2{font-family:var(--body);font-size:22px;font-weight:700;letter-spacing:-.4px}
address{font-style:normal}
.contact-details p,.contact-details address{font-size:14px}
.site-footer{background:#e9ede3;border-top:1px solid var(--line);padding:45px 5% 24px}
.footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:45px;padding-bottom:35px}
.footer-brand p{font-size:13px;color:var(--muted);max-width:300px;margin-top:19px}
.footer-contact{font-size:12px;line-height:1.9}
.footer-contact strong{font-size:13px}
.footer-contact a{overflow-wrap:anywhere}
.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;align-content:start;font-size:12px}
.footer-links a{text-decoration:none}
.footer-bottom{border-top:1px solid #cbd3c5;padding-top:19px;display:flex;justify-content:space-between;gap:25px;font-size:11px;color:var(--muted)}
@media(min-width:1500px){.hero{gap:10%}}
@media(max-width:950px){.header-links{gap:18px}.languages{padding-left:16px}.hero{gap:5%;padding-block:55px}.calculator{padding:25px}.hero h1{font-size:60px}.principle-band{gap:20px}.article-layout{grid-template-columns:160px minmax(0,1fr);gap:5%}.footer-top{gap:25px}}
@media(max-width:700px){.site-header{align-items:flex-start;flex-wrap:wrap;padding-block:21px;gap:20px}.brand strong{font-size:23px}.header-links{width:100%;justify-content:space-between;gap:12px;flex-wrap:wrap}.header-links>a,.topic-menu>summary{font-size:13px}.languages{gap:9px;font-size:11px;padding-left:12px}.topic-menu nav{right:auto;left:-65px;max-width:80vw}.hero{grid-template-columns:1fr;gap:38px;padding-block:40px}.hero h1{font-size:clamp(47px,10vw,66px)}.hero-copy>p:not(.kicker){font-size:16px}.kicker{margin-bottom:20px}.calculator{padding:24px}.calc-row label{font-size:13px}.money-input input{width:94px}.principle-band{grid-template-columns:1fr;gap:15px;padding-block:25px}.principle{gap:15px}.learning{padding-block:42px 50px}.section-heading{display:block}.section-heading h2{font-size:34px;margin-bottom:12px}.learning-grid{grid-template-columns:1fr;gap:35px}.feature-story img{height:230px}.article-layout{grid-template-columns:1fr;gap:24px;padding-top:27px}.article-aside{border-bottom:1px solid var(--line);padding-bottom:8px}.article-aside p{margin-bottom:12px}.article-aside strong{display:inline;margin-right:8px}.article-head .intro{font-size:18px}.breadcrumb{margin-bottom:30px}.page-article{padding-top:30px;padding-bottom:50px}.article-head h1{letter-spacing:-1.4px}.example{padding:22px}.contact-view{padding-block:40px 55px}.contact-layout{grid-template-columns:1fr;gap:30px;margin-top:32px}.contact-panel{padding:26px}.footer-top{grid-template-columns:1fr;gap:24px}.footer-brand p{max-width:100%}.footer-links{max-width:360px}.footer-bottom{flex-direction:column;gap:8px}.next-read{flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* === OPEN NAVIGATION SURFACE SAFETY === */
/* Position, shadows, borders and scroll treatment belong to the author.
   Only an OPEN mobile menu gets a mandatory opaque readable surface. */
header.site-header[data-pwp-nav-open] {
  background-color: var(--bg, #ffffff) !important;
  isolation: isolate;
}
[data-pwp-mobile-menu][data-pwp-menu-open] {
  background-color: var(--bg, #ffffff);
  color: var(--text, #0f172a);
  max-block-size: var(--pwp-nav-available-height, calc(100dvh - 6rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pwp-source-note {
  margin-block-start: 1rem;
  font-size: .875em;
  line-height: 1.5;
}
.pwp-source-note a { text-decoration: underline; text-underline-offset: .2em; }
