/* pwp-authored-additional-v1-20261028: technical foundation only */
@layer pwp-runtime-foundation {
  :root {
    --bg:#fbfbfd; --text:#1d1d1f;
    --surface:#ffffff; --text-muted:#86868b;
    --primary:#0071e3; --primary-fg:#ffffff;
    --border:#d2d2d7;
  }
  *, *::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{--canvas:#fbfbfd;--surface:#fff;--text:#1d1d1f;--muted:#626269;--border:#d2d2d7;--blue:#0071e3;--orange:#c65019;--green:#246044;--red:#9e3438;--heading:"Plus Jakarta Sans",sans-serif;--body:"Inter",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--text);font-family:var(--body);-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
a{color:var(--blue);text-underline-offset:4px}
a,button,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.skip-link{position:absolute;top:-80px;left:20px;z-index:10;background:white;padding:14px}
.skip-link:focus{top:12px}
.wrap{width:min(1120px,calc(100% - 80px));margin-inline:auto}
.site-header{background:var(--surface);border-bottom:1px solid #e9e9ed}
.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:inline-flex;align-items:center;gap:11px;color:var(--text);text-decoration:none;font-family:var(--heading);font-size:19px;font-weight:750;letter-spacing:-.7px}
.brand svg{width:35px;height:35px;flex:none;color:var(--orange)}
.pill{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 23px;border-radius:28px;color:white;background:var(--blue);text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap;transition:opacity .18s}
.pill:hover{opacity:.85}
.hero{text-align:center;padding:90px 0 70px}
.hero-label{font-size:14px;font-weight:600;letter-spacing:.02em;margin:0 0 26px;color:var(--muted)}
h1,h2,h3{font-family:var(--heading);letter-spacing:-.035em}
.hero h1{font-size:clamp(42px,5.6vw,72px);line-height:1.09;font-weight:750;max-width:990px;margin:0 auto 27px}
.hero h1 span{color:var(--orange)}
.hero-description{font-size:clamp(18px,2vw,23px);line-height:1.5;color:var(--muted);max-width:650px;margin:0 auto}
.hero-bottom{margin:27px 0 0;font-size:13px;color:var(--muted)}
.section{padding:45px 0 54px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:25px}
.section-heading h2{font-size:30px;margin:0;line-height:1.25}
.section-heading p{color:var(--muted);font-size:13px;margin:0}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature{display:flex;flex-direction:column;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:29px 27px 24px}
.feature-icon{width:32px;height:32px;stroke:var(--orange);stroke-width:1.6;fill:none;margin-bottom:26px}
.feature h3{font-size:21px;line-height:1.35;margin:0 0 12px}
.feature p{font-size:15px;line-height:1.7;color:var(--muted);margin:0 0 26px}
.feature a{margin-top:auto;display:inline-flex;align-items:center;gap:10px;font-size:14px;min-height:36px;text-decoration:none}
.feature a:hover{text-decoration:underline}
.data-section{padding:25px 0 66px}
.data-panel{background:white;border:1px solid var(--border);border-radius:26px;overflow:hidden}
.data-intro{padding:27px 30px 22px;border-bottom:1px solid #e5e5ea}
.data-intro p{margin:0;color:var(--muted);font-size:14px;line-height:1.6;max-width:780px}
.data-intro strong{color:var(--text);font-weight:600}
.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:15px;font-variant-numeric:tabular-nums}
.data-table th{font-weight:500;color:var(--muted);font-size:12px;padding:16px 30px;background:#fafafa}
.data-table td{padding:22px 30px;border-top:1px solid #ececf0}
.data-table th:nth-child(n+2),.data-table td:nth-child(n+2){text-align:right}
.data-table td:nth-child(2){font-size:21px;font-weight:600;letter-spacing:-.04em}
.data-table small{display:block;font-size:12px;color:var(--muted);margin-top:5px;font-weight:400;letter-spacing:0}
.up{color:var(--green)}
.down{color:var(--red)}
.data-note{font-size:12px;line-height:1.7;color:var(--muted);margin:17px 4px 0}
.about-band{background:#f0f0f3;padding:64px 0 70px}
.about-layout{display:grid;grid-template-columns:1fr 1.8fr;gap:65px}
.about-layout h2{font-size:30px;line-height:1.25;margin:0}
.about-layout p{font-size:20px;line-height:1.7;letter-spacing:-.025em;margin:0}
.about-layout .fine{font-size:14px;color:var(--muted);letter-spacing:0;margin-top:20px}
.article{max-width:760px;margin:auto;padding:58px 0 80px}
.back-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:none;margin-bottom:32px}
.article .topic{color:var(--orange);font-size:14px;font-weight:600;margin:0 0 17px}
.article h1{font-size:clamp(36px,4.8vw,56px);line-height:1.13;margin:0 0 25px}
.article .lead{font-size:21px;line-height:1.65;color:var(--muted);margin-bottom:38px}
.article h2{font-size:27px;line-height:1.3;margin:37px 0 16px}
.article p,.article li{font-size:16px;line-height:1.85}
.article ul,.article ol{padding-left:24px}
.article li{padding-left:5px;margin-bottom:10px}
.reading-note{border-left:3px solid var(--border);padding:4px 0 4px 23px;margin:28px 0}
.reading-note p{margin:6px 0}
.source-note{background:white;border:1px solid var(--border);border-radius:18px;padding:22px 25px;margin-top:32px}
.source-note h2{font-size:19px;margin:0 0 12px}
.source-note p{font-size:14px;margin:8px 0;color:var(--muted)}
.next-topic{border-top:1px solid var(--border);margin-top:40px;padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:14px}
.contact-page{padding:76px 0 90px}
.contact-heading{max-width:750px}
.contact-heading h1{font-size:clamp(40px,5vw,64px);margin:0 0 24px}
.contact-heading p{font-size:20px;line-height:1.65;color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;margin-top:42px}
.contact-card{background:white;border:1px solid var(--border);border-radius:24px;padding:30px;min-width:0}
.contact-card h2{font-size:23px;margin:0 0 20px}
.contact-card p{font-size:15px;line-height:1.8}
.contact-card .email{font-size:clamp(17px,2.2vw,24px);overflow-wrap:anywhere;display:inline-block;margin-bottom:10px}
.contact-card address{font-style:normal;font-size:15px;line-height:1.9}
.site-footer{background:var(--surface);border-top:1px solid #e2e2e7;padding:42px 0 24px}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}
.footer-name{font-family:var(--heading);font-size:18px;font-weight:700;margin:0 0 16px}
.footer-details{font-size:12px;line-height:1.85;color:var(--muted);margin:0}
.footer-details a{color:inherit;overflow-wrap:anywhere}
.footer-heading{font-size:13px;font-weight:600;margin:0 0 13px}
.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.footer-links a{color:var(--muted);font-size:12px;line-height:1.6;min-height:30px;display:inline-flex;align-items:center;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.footer-bottom{border-top:1px solid #e9e9ed;display:flex;justify-content:space-between;gap:20px;margin-top:30px;padding-top:20px;font-size:11px;line-height:1.7;color:var(--muted)}
@media(min-width:1400px){.hero{padding-top:105px;padding-bottom:83px}}
@media(max-width:760px){.wrap{width:calc(100% - 40px)}.header-inner{min-height:76px}.brand{font-size:16px;gap:7px}.brand svg{width:29px;height:29px}.pill{font-size:12px;padding:10px 16px}.hero{padding:60px 0 40px}.hero-label{font-size:12px;margin-bottom:23px}.hero h1{font-size:44px;letter-spacing:-.045em}.hero-description{font-size:18px;max-width:430px}.hero-bottom{font-size:12px;line-height:1.6}.section{padding:30px 0 40px}.section-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:20px}.section-heading h2{font-size:27px}.features{grid-template-columns:1fr;gap:14px}.feature{padding:25px}.feature-icon{margin-bottom:20px}.feature p{margin-bottom:15px}.data-section{padding-bottom:42px}.data-intro{padding:21px 20px}.data-table th{padding:14px 13px;font-size:11px}.data-table td{padding:19px 13px;font-size:13px}.data-table td:first-child{width:46%}.data-table td:nth-child(2){font-size:18px}.data-table td:nth-child(3){font-size:12px;white-space:nowrap}.data-table small{font-size:10px;line-height:1.5}.about-band{padding:42px 0}.about-layout{grid-template-columns:1fr;gap:22px}.about-layout p{font-size:18px}.article{padding:30px 0 55px}.article .lead{font-size:19px}.article h2{font-size:24px}.contact-page{padding:45px 0 55px}.contact-grid{grid-template-columns:1fr}.contact-card{padding:25px}.footer-top{grid-template-columns:1fr 1fr;gap:28px 20px}.footer-business{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:6px}.next-topic{align-items:flex-start;flex-direction:column;gap:12px}}
@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; }
