/* pwp-authored-additional-v1-20261028: technical foundation only */
@layer pwp-runtime-foundation {
  :root {
    --bg:#EFF6FF; --text:#1E40AF;
    --surface:#FFFFFF; --text-muted:#475569;
    --primary:#1E3A8A; --primary-fg:#FFFFFF;
    --border:#BFDBFE;
  }
  *, *::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; }
  [data-cookie-fallback] { 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); }
  [data-cookie-fallback] .cookie-text { font:14px/1.5 system-ui,sans-serif; }
  [data-cookie-fallback] .cookie-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-block-start:.75rem; }
  [data-cookie-fallback] button { min-block-size:44px; padding:.6rem 1rem; border:1px solid var(--border); background:var(--surface); color:var(--text); }
  [data-cookie-fallback] [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{--bg:#f2f1ed;--text:#171817;--surface:#fff;--text-muted:#555956;--primary:#1b1d1b;--primary-fg:#fff;--border:#b8bbb5;--serif:"Cormorant Garamond",Georgia,serif;--sans:"DM Sans",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);line-height:1.6}a{color:inherit;text-decoration-thickness:1px;text-underline-offset:4px}a:hover{text-decoration-thickness:2px}button{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #626a60;outline-offset:4px}[hidden]{display:none!important}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.05;font-weight:500}h1,h2{font-family:var(--serif)}h1{font-size:clamp(3.8rem,8vw,8.5rem);letter-spacing:-.045em}h2{font-size:clamp(2.6rem,5vw,5rem);letter-spacing:-.03em}h3{font-family:var(--serif);font-size:2rem}.site-header{background:var(--bg);border-bottom:1px solid var(--text)}.header-top{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.15rem 4.5%}.brand{text-decoration:none;font-family:var(--serif);font-size:1.65rem;font-weight:700;line-height:.9;letter-spacing:-.04em}.brand span{display:block;font-family:var(--sans);font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;margin-top:.4rem}.header-right{display:flex;gap:1.4rem;align-items:center;font-size:.8rem}.language{display:flex;gap:.7rem}.language a[aria-current]{font-weight:700}.topic-nav{display:flex;gap:2rem;overflow-x:auto;white-space:nowrap;padding:.8rem 4.5%;border-top:1px solid var(--border);scrollbar-width:thin}.topic-nav a{font-size:.78rem;text-decoration:none}.topic-nav a:hover{text-decoration:underline}.hero{position:relative;min-height:clamp(520px,68vw,820px);display:flex;align-items:flex-end;background:#343633;color:white;isolation:isolate}.hero img{position:absolute;inset:0;width:100%;height:100%;z-index:-2;filter:grayscale(100%)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.12) 80%),linear-gradient(0deg,rgba(0,0,0,.55),transparent 70%);z-index:-1}.hero-content{padding:6rem 5%;width:min(100%,1050px)}.eyebrow{font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;font-weight:700}.hero h1{margin:.8rem 0 1rem}.hero p:not(.eyebrow){font-size:clamp(1rem,1.5vw,1.2rem);max-width:38rem}.hero-link{display:inline-block;margin-top:1rem;font-size:.85rem;font-weight:700;text-decoration:none;border-bottom:1px solid;padding-bottom:.4rem}.wrap{width:min(91%,1400px);margin:auto}.intro{display:grid;grid-template-columns:1fr 1.35fr;gap:8%;padding:7rem 0}.intro h2{max-width:9ch;margin:0}.lead{font-family:var(--serif);font-size:clamp(1.6rem,2.6vw,2.5rem);line-height:1.25}.intro-copy p:last-child{max-width:40rem;color:var(--text-muted)}.index{border-top:1px solid var(--text);padding:2rem 0 7rem}.index-head{display:flex;justify-content:space-between;gap:2rem;align-items:baseline}.index-head h2{font-size:2.6rem}.index-list{border-top:1px solid var(--border)}.index-row{display:grid;grid-template-columns:4rem 1fr 1.3fr 2rem;gap:1rem;align-items:center;padding:1.4rem 0;border-bottom:1px solid var(--border);text-decoration:none}.index-row:hover .index-title{text-decoration:underline}.index-num,.index-desc{font-size:.8rem;color:var(--text-muted)}.index-title{font-family:var(--serif);font-size:clamp(1.7rem,3vw,2.7rem);line-height:1}.arrow{font-size:1.4rem;text-align:right}.page-head{padding:5rem 0 3rem;border-bottom:1px solid var(--border)}.page-head h1{max-width:13ch;margin:.7rem 0 1.4rem;font-size:clamp(3.7rem,7vw,7rem)}.page-head .dek{font-family:var(--serif);font-size:clamp(1.5rem,2.4vw,2.2rem);line-height:1.25;max-width:42rem;margin:0}.feature-image{width:100%;height:clamp(300px,48vw,660px);filter:grayscale(100%)}.caption{font-size:.75rem;color:var(--text-muted);padding:.65rem 0}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:9%;padding:5rem 0 7rem}.side-note{font-size:.85rem;color:var(--text-muted);border-top:1px solid var(--text);padding-top:1rem;align-self:start}.article{max-width:48rem}.article h2{font-size:clamp(2.4rem,4vw,3.8rem);margin:3.5rem 0 1.2rem}.article h2:first-child{margin-top:0}.article p,.article li{max-width:43rem}.article p{color:#303330}.article ul{padding-left:1.25rem}.article li{margin-bottom:.6rem}.article-image{width:100%;height:clamp(260px,35vw,450px);filter:grayscale(100%);margin-top:2.5rem}.rule-list{border-top:1px solid var(--border);margin:2rem 0}.rule-list div{padding:1.2rem 0;border-bottom:1px solid var(--border)}.rule-list strong{display:block;margin-bottom:.3rem}.faq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);margin-top:2rem}.faq-grid details{background:var(--bg);padding:1.4rem}.faq-grid summary{font-weight:700;cursor:pointer;line-height:1.4}.faq-grid p{font-size:.9rem;margin:1rem 0 0}.next{border-top:1px solid var(--text);padding:2rem 0 5rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}.next a{font-family:var(--serif);font-size:2rem;text-decoration:none}.contact-details{font-size:1.1rem}.site-footer{background:#1b1d1b;color:#f5f5f0;padding:4rem 4.5% 2rem}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:3rem}.footer-brand{font-family:var(--serif);font-size:2.3rem;line-height:1}.site-footer p,.site-footer a,.site-footer button{font-size:.8rem}.site-footer a{display:inline-block}.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.footer-bottom{border-top:1px solid #696c68;margin-top:3rem;padding-top:1rem;color:#c5c8c1;font-size:.75rem}.cookie-open{border:0;background:none;color:inherit;padding:0;text-decoration:underline;cursor:pointer}.cookie-banner{position:fixed;z-index:20;bottom:1rem;left:1rem;right:1rem;margin:auto;max-width:950px;background:#fff;color:#171817;border:1px solid #171817;box-shadow:0 5px 30px #0003;padding:1.3rem;display:flex;align-items:center;gap:1.5rem}.cookie-banner p{margin:0;font-size:.85rem;flex:1}.cookie-actions{display:flex;gap:.5rem;flex-wrap:wrap}.cookie-actions button{padding:.7rem 1rem;border:1px solid #1b1d1b;background:#1b1d1b;color:white;cursor:pointer}.cookie-actions button:last-child{background:white;color:#1b1d1b}.document{width:min(90%,760px);margin:5rem auto}.document h1{font-size:4rem}.document h2{font-size:2.5rem;margin-top:2rem}
@media(max-width:700px){.header-top{padding:1rem 5%;align-items:flex-start}.header-right{gap:.8rem;flex-direction:column;align-items:flex-end}.topic-nav{gap:1.5rem;padding:.8rem 5%}.hero{min-height:570px}.hero-content{padding:4rem 5%}.intro{grid-template-columns:1fr;gap:2rem;padding:4rem 0}.intro h2{max-width:none}.index{padding-bottom:4rem}.index-row{grid-template-columns:2rem 1fr 1.5rem}.index-desc{grid-column:2;grid-row:2}.arrow{grid-column:3;grid-row:1}.article-layout{grid-template-columns:1fr;gap:2.5rem;padding:3rem 0 4rem}.page-head{padding:3.5rem 0 2rem}.faq-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:2rem}.cookie-banner{align-items:flex-start;flex-direction:column;gap:1rem}.next{align-items:flex-start;flex-direction:column}.next a{font-size:1.7rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* === 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; }
