/* Shared editorial foundations for the static site and WordPress. */
html[data-edition] {
  --ed-paper:#f7f6f0; --ed-ink:#142f32; --ed-muted:#405753;
  --ed-green:#075c49; --ed-wash:#e9ede6; --ed-rule:#b9c6be;
  --ed-display:Georgia,"Times New Roman",serif;
  --ed-text:system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-edition] body { background-color:var(--ed-paper); }
html[data-edition] body .r141-mainbar { background:#fffef9 !important; border-bottom:1px solid var(--ed-rule) !important; }
html[data-edition] body .r141-top { background:var(--ed-ink) !important; }
html[data-edition] body .r141-top .r141-top-text {color:#eaf0ec !important;}
html[data-edition] body .r141-mainbar .r141-primary { background:var(--ed-green) !important; }
html[data-edition] body :is(main, .wms-main) h2 {font-family:var(--ed-display); font-weight:400; letter-spacing:-.025em; text-wrap:balance;}
html[data-edition] body :is(form,[role=dialog]) h2 {font-family:var(--ed-text);font-weight:650;letter-spacing:-.015em;}
html[data-edition] body [data-ed-hero] {
  color:var(--ed-ink) !important; background:var(--ed-paper) !important;
  border-bottom:1px solid var(--ed-rule) !important; box-shadow:none !important;
}
html[data-edition] body [data-ed-hero]::before,html[data-edition] body [data-ed-hero]::after,
html[data-edition] body [data-ed-copy]::before { background:none !important; box-shadow:none !important; pointer-events:none; }
html[data-edition] body [data-ed-hero] :is(.product-grid,.r41-layout,.hub31-layout,.ws30-hero-layout,.rev53-hero-grid,.w129-home-grid,.w129-page-grid) {
  min-width:0; align-items:center;
}
html[data-edition] body [data-ed-copy] { min-width:0; color:var(--ed-ink) !important; }
html[data-edition] body [data-ed-hero] h1, html[data-edition] body .wms-main h1 {
  color:var(--ed-ink) !important; font:400 clamp(36px,4.1vw,66px)/1.075 var(--ed-display) !important;
  max-width:24ch; letter-spacing:-.042em !important; text-shadow:none !important; text-wrap:balance; overflow-wrap:break-word;
}
html[data-edition] body [data-ed-copy] > :is(p,span,ul),html[data-edition] body [data-ed-copy] > p :is(span,strong,small),
html[data-edition] body [data-ed-copy] > ul > li {
  color:var(--ed-muted) !important; text-shadow:none !important;
}
html[data-edition] body [data-ed-copy] > p { line-height:1.6; max-width:65ch; }
html[data-edition] body [data-ed-copy] > :is(.eyebrow,[class*="kicker"],[class*="eyebrow"],.file-label,.sales75-category) {
  background:none !important; border:0 !important; color:var(--ed-green) !important; padding-inline:0 !important;
  font:600 14px/1.4 var(--ed-text) !important; text-shadow:none !important;
}
html[data-edition] body [data-ed-copy] > p a,html[data-edition] body [data-ed-copy] > .wms130-crumb a {
 color:var(--ed-green) !important; text-decoration:underline; text-underline-offset:.2em;
}
html[data-edition] body [data-ed-copy] > :is(.r150-decision,.hero-callout,.wms117-inline-price,.wms61-case-topic,.hub31-inline-price,.r41-small-proof,.rev53-proof,.w129-fit) {
  background:none !important; border:0 !important; box-shadow:none !important; padding-inline:0 !important; color:var(--ed-muted) !important;
}
html[data-edition] body [data-ed-copy] :is(.mini-proof,.hero-points,.sector28-trust,.r41-bullets,.rev53-points,.trust,.aq-benefits) :is(span,li) {
  background:transparent !important; color:var(--ed-muted) !important; border-color:var(--ed-rule) !important;
}
html[data-edition] body [data-ed-copy] .wms117-offer {background:white !important;color:var(--ed-ink) !important;border:1px solid var(--ed-rule) !important;box-shadow:none !important;}
html[data-edition] body [data-ed-copy] .wms117-offer :is(p,span,strong,small,a) {color:var(--ed-ink) !important;}
html[data-edition] body [data-ed-copy] .wms117-offer a {color:var(--ed-green) !important;}
html[data-edition] body [data-ed-copy] .wms117-offer .wms117-offer__primary {color:var(--ed-green) !important;background:transparent !important;}
html[data-edition] body a[data-ed-primary],html[data-edition] body .wms-main .wms-primary {
  background:var(--ed-green) !important; color:white !important; border:1px solid var(--ed-green) !important;
  border-radius:5px !important; display:inline-flex;align-items:center; min-height:44px; padding:10px 17px;
  text-decoration:none !important; box-shadow:none !important; text-shadow:none !important;
}
html[data-edition] body a[data-ed-secondary] {
  color:var(--ed-green) !important;background:transparent !important;border-color:transparent !important;
  min-height:44px;display:inline-flex;align-items:center;text-decoration:underline !important;text-underline-offset:.2em;
  box-shadow:none !important; text-shadow:none !important;
}
html[data-edition] body [data-ed-hero] :is(.product-visual,.w129-hero-aside,.wms76-hero-aside) {
 border-radius:4px !important; box-shadow:none !important;
}
html[data-edition] body .ed-note {
 margin:0; padding:clamp(20px,3.2vw,46px); background:var(--ed-wash); color:var(--ed-ink);
 border-radius:0; min-width:0;
}
html[data-edition] body .ed-note .ed-note-label { border-top:2px solid var(--ed-ink);color:var(--ed-green) !important;font:600 14px/1.4 var(--ed-text);padding-top:12px; margin:0; }
html[data-edition] body .ed-note h2 { color:var(--ed-ink) !important;font:400 clamp(30px,3vw,44px)/1.1 var(--ed-display) !important; margin:20px 0; }
.ed-note dl { margin:0; }
.ed-note dl div {display:grid;grid-template-columns:5em 1fr;gap:12px;border-top:1px solid var(--ed-rule);padding:13px 0;}
html[data-edition] body .ed-note :is(dt,dd) {color:var(--ed-ink) !important;font:400 16px/1.45 var(--ed-text);margin:0;}
html[data-edition] body .ed-note dt {font-weight:650;color:var(--ed-green) !important;}
html[data-edition] body main :is(.soft,.w129-soft,.wms119-choice,.wms135-eip,.wms111-story,.r149-market,.wms108-intent,.wms109-panel) {background-color:var(--ed-paper) !important;}
html[data-edition] body main :is(.wms109-card,.wms119-choice__card,.wms48-why__card,.case-card,.service-card,.wms135-eip__row) {
 box-shadow:none !important; border-radius:4px !important; border-color:var(--ed-rule) !important;
}
html[data-edition] body .ed-film {margin:0;min-width:0;}
.ed-film video, .wms-article-film video {display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--ed-wash);}
html[data-edition] body :focus-visible {outline:3px solid #166da2 !important;outline-offset:3px;}
html[data-edition] body :is(.wms-content,.wms-page,.wms-post){color:var(--ed-ink);}
html[data-edition] body .wms144-journal-head {background:transparent !important;border-bottom:1px solid var(--ed-rule);padding-bottom:24px;}
html[data-edition] body .wms144-journal-head h1 {margin:.22em 0;}
html[data-edition] body .wms-main :is(.wms-kicker,.wms144-story-more,.wms-text-link,.wms-meta a){color:var(--ed-green) !important;}
html[data-edition] body .wms144-story .wms144-story-link {border-radius:0 !important;box-shadow:none !important;}
html[data-edition] body .wms144-story {border-color:var(--ed-rule);box-shadow:none !important;}
html[data-edition] body .wms144-story-media img {border-radius:0;}
html[data-edition] body .wms144-post-cover figcaption {font:400 14px/1.55 var(--ed-text);color:var(--ed-muted);margin-top:8px;}
html[data-edition] body .wms-article-film {max-width:740px;margin:24px auto;}
.wms-article-film summary {cursor:pointer;font-weight:600;color:var(--ed-green);padding:14px 0;}
html[data-edition] body .wms-main :is(.wms-evidence,.wms144-journal-end,.wms-shop-intro){background:var(--ed-wash) !important;border-radius:0;color:var(--ed-ink) !important;}
html[data-edition] body .wms-main :is(.wms-evidence,.wms144-journal-end,.wms-shop-intro) :is(h2,p){color:var(--ed-ink) !important;}
html[data-edition] .wms-content a:not(.button) {text-underline-offset:.18em;}
@media(max-width:680px){
 html[data-edition] body [data-ed-hero] h1,html[data-edition] body .wms-main h1 {font-size:clamp(32px,8.2vw,47px) !important;max-width:100%;line-height:1.07 !important;}
 html[data-edition] body .ed-note {margin-top:10px;padding:20px;}
 html[data-edition] body [data-ed-hero] {min-height:0 !important;}
}
@media(prefers-reduced-motion:reduce){html[data-edition]{scroll-behavior:auto !important;}html[data-edition] body :is([data-ed-hero],.wms144-story) *{animation:none !important;transition:none !important;}}
html[data-edition] body .wms144-journal-grid {column-gap:clamp(20px,3vw,48px);row-gap:32px;}
html[data-edition] body .wms144-lead {grid-column:1/-1; border-top:2px solid var(--ed-ink); padding-top:16px;}
html[data-edition] body .wms144-lead .wms144-story-link:not(.wms144-no-image){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:clamp(22px,4vw,60px);}
html[data-edition] body .wms144-lead h2 {font:400 clamp(29px,3.7vw,52px)/1.09 var(--ed-display);color:var(--ed-ink);}
html[data-edition] body .wms144-story-media .ed-cover-credit {display:block;color:var(--ed-muted);background:var(--ed-paper);text-align:left;padding:4px 0;font:400 12px/1.4 var(--ed-text);}
@media(max-width:700px){html[data-edition] body .wms144-lead .wms144-story-link:not(.wms144-no-image){display:flex;flex-direction:column;align-items:stretch;gap:14px;}html[data-edition] body .wms144-journal-head {gap:16px;}}
/* The imported templates contain unlayered !important rules targeting legacy dark
   hero variants. A named layer takes precedence for these exact surface roles. */
@layer editorial-surface {
 html[data-edition] body [data-ed-hero] {background:var(--ed-paper) !important;color:var(--ed-ink) !important;}
 [data-ed-hero]::before,[data-ed-hero]::after,[data-ed-copy]::before {background:none !important;box-shadow:none !important;}
 [data-ed-copy] > h1, [data-ed-copy] > h1 * {color:var(--ed-ink) !important;-webkit-text-fill-color:currentColor !important;background:none !important;text-shadow:none !important;font-family:var(--ed-display) !important;}
 [data-ed-copy] > h1 :is(em,span) {color:var(--ed-green) !important;}
 [data-ed-copy] > :is(p,span),[data-ed-copy] > p :is(span,small,strong),[data-ed-copy] > ul li {color:var(--ed-muted) !important;-webkit-text-fill-color:currentColor !important;opacity:1 !important;text-shadow:none !important;}
 [data-ed-copy] > :is(p,span):not(.file-label) {background:transparent !important;}
 [data-ed-copy] > :is(.file-label,.eyebrow,[class*="kicker"],[class*="eyebrow"]),[data-ed-copy] > p a,[data-ed-copy] .wms130-crumb a {color:var(--ed-green) !important;}
 [data-ed-copy] > :is(.r41-bullets,.rev53-points,.sector28-trust,.trust) li {background:transparent !important;}
 [data-ed-copy] > p a {background:transparent !important;}
 [data-ed-copy] a[data-ed-primary], [data-ed-copy] a[data-ed-primary] :is(span,strong) {background:var(--ed-green) !important;color:#fff !important;-webkit-text-fill-color:currentColor !important;}
 [data-ed-copy] a[data-ed-secondary], [data-ed-copy] a[data-ed-secondary] :is(span,strong) {background:transparent !important;color:var(--ed-green) !important;-webkit-text-fill-color:currentColor !important;}
}
@layer editorial-surface {
 [data-ed-prose] {display:block !important;max-width:min(92%,860px) !important;margin-inline:auto !important;}
 [data-ed-hero].wms92-price-hero .hero-copy > p {color:var(--ed-muted) !important;}
 [data-ed-hero].wms92-price-hero .hero-copy > p a {color:var(--ed-green) !important;}
 [data-ed-hero].wms92-price-hero .product-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)) !important;}
}

html[data-edition] .ed-scope {margin:1rem 0;background:transparent;border-block:1px solid var(--ed-rule);color:var(--ed-ink);}
html[data-edition] .ed-scope > summary {cursor:pointer;padding:12px 0;min-height:44px;font:600 1rem/1.4 var(--ed-text);color:var(--ed-green);}
html[data-edition] .ed-scope .wms77-summary {margin:0 0 12px;}

/* Keep the full archived category strip legible on article and archive layouts. */
html[data-edition] body :is(.wms144-story-media,.wms144-post-cover) img[src*="/covers/blog-3"] {object-fit:contain;background:var(--ed-wash);object-position:center;}

@layer editorial-surface {
 details.ed-scope:not([open]) > .wms77-summary {display:none !important;}
 details.ed-scope > summary {list-style:disclosure-closed !important;display:list-item !important;}
 details.ed-scope[open] > summary {list-style:disclosure-open !important;}
}

/* Publication rhythm and navigation, shared by the static pages and the journal. */
html[data-edition] body .r141-mainbar{box-shadow:none!important}
html[data-edition] body .r141-nav a:focus-visible{outline:2px solid #215948;outline-offset:3px}
@media(hover:hover){
 html[data-edition] body .r141-nav a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.35em}
}
html[data-edition] body [data-ed-copy]>h1{line-height:1.075!important}
html[data-edition] body :is(.ws-report,.ed-note,.wms-content) p{hanging-punctuation:first last}
