/* Shared reading theme. Paper, ink, and rules are paired for both appearances. */
:root {
  color-scheme: light dark;
  --reading-paper: light-dark(#f5f5ef,#171e1b);
  --reading-sheet: light-dark(#fffefa,#202824);
  --reading-text: light-dark(#23332e,#e1e9e2);
  --reading-muted: light-dark(#50625b,#b6c4b9);
  --reading-rule: light-dark(#d3dbd2,#3b4b41);
  --reading-accent: light-dark(#245e52,#a8d5bc);
  --reading-wash: light-dark(#e9efe7,#29382e);
  --reading-gutter: clamp(16px,3vw,48px);
  --reading-pad: clamp(16px,2vw,28px);
  --reading-width: 1320px;
}
:root[data-fw-mode="dark"] { color-scheme: dark; }
:root[data-fw-mode="light"] { color-scheme: light; }
@media screen and (forced-colors:none) {
  html:root body { background-color: var(--reading-paper); color: var(--reading-text); }
  html:root body #main .fw308-recommendation {
    background: var(--reading-wash); border: 1px solid var(--reading-rule); color: var(--reading-text);
    border-radius: 6px; box-shadow: none;
  }
  html:root body #main .fw308-recommendation :is(a,b,.cb-r249-recommendation-label) { color:var(--reading-accent)!important; border-color:var(--reading-rule)!important; }
  html:root body #main .fw308-recommendation b { background:transparent; }
  html:root body #main .fw308-recommendation .cb-r249-community-link { border-left-color:var(--reading-rule)!important; }
  html:root body #main .cb-r204-filter-band { background:var(--reading-sheet); border-color:var(--reading-rule); border-radius:7px; }
  html:root body #main .hm-promo-banner:has([data-cb-carousel]) { background:light-dark(#203932,#162b25); }
  html:root body #main .cb-r204-item-panel .cb-r204-intel-copy a { text-underline-offset:.2em; }
  html:root body :is(.pf-brand,.ops-brand,.portal-brand) img[src*="formweft-mark-dark"] { background:transparent; }
  html[data-fw-appearance="dark"] body :is(.brand-mark,.ops-brand img,.portal-brand img)[src*="formweft-mark-dark"] { filter:brightness(0) saturate(100%) invert(88%) sepia(14%) saturate(378%) hue-rotate(83deg); }
  html:root body :is(.pf-header-r200,.ops-header,.portal-topbar) { background-color: var(--reading-sheet)!important; }
}
html:root body .fw403-switch {
  position:relative; display:inline-grid; place-items:center; flex:0 0 auto; vertical-align:middle;
  width:40px; height:42px; margin:0; padding:0; border:1px solid transparent; border-radius:5px;
  color:var(--reading-accent); background:transparent; line-height:1; cursor:pointer;
}
html:root body .fw403-switch:hover,html:root body .fw403-switch:focus-within { background:var(--reading-wash); border-color:var(--reading-rule); }
html:root body .fw403-switch:has(:focus-visible) { outline:2px solid var(--reading-accent); outline-offset:2px; }
html:root body .fw403-switch select { position:absolute!important; inset:0; display:block; width:100%!important; height:100%!important; min-width:0!important; min-height:0!important; padding:0!important; margin:0!important; opacity:0; cursor:pointer; }
.fw403-disc { box-sizing:border-box; width:17px; height:17px; border-radius:100%; border:1.6px solid currentColor; background:linear-gradient(90deg,currentColor 50%,transparent 50%); }
.fw403-utility { display:flex; justify-content:flex-end; padding:4px var(--reading-gutter); }
html:root body .pf-header-r200 .pf-brand-controls:has(.fw403-switch) { display:flex; align-items:center; gap:4px; min-width:0; }
html:root body #main :is(.cb-r204,.co-main,.oa387-shell,.pf-product-shell) { box-sizing:border-box; }
html:root body #main > .cb-r204:not(.cb-r204-home),html:root body #main .co-main {
  width:min(var(--reading-width),calc(100% - var(--reading-gutter) * 2))!important;
  margin-inline:auto!important; padding-inline:0!important;
}
html:root body #main .cb-r204-page-head-copy { padding-inline:2px; }
html:root body #main :is(.cb-r204-filter-band,.cb-r204-panel) { padding-inline:var(--reading-pad)!important; }
html:root body #main .cb-r204-intel-copy { min-width:0; overflow-wrap:anywhere; }
html:root body #main .cb-r204-intel-copy p { max-inline-size:78ch; }
html:root body #main .cb-r204-filter-band :is(.cb-r204-filter-row,nav) { min-width:0; }
html:root body #main :is(.pf-product-shell,.fw308-topbar,.co-space-head) { max-width:var(--reading-width); }
html:root body #main :is(.pf-product-shell,.fw308-topbar) { width:min(var(--reading-width),calc(100% - var(--reading-gutter) * 2)); margin-inline:auto; }
html:root body #main :is(.pf-product-shell,.cb-r204,.co-main) :is(h1,h2,h3,p,fieldset,article) { min-inline-size:0; }
html:root body #main :is(.pf-product-shell,.cb-r204,.co-main) :is(h1,h2,h3) { overflow-wrap:break-word; }
@media(max-width:640px){
  html:root body #main :is(.cb-r204-filter-band,.cb-r204-panel) { padding-inline:16px!important; }
  html:root body .pf-header-r200 .pf-brand-controls:has(.fw403-switch) { gap:1px; }
  html:root body .fw403-switch { width:36px; }
  html:root body #main .cb-r204-intel-copy { line-height:1.65; }
}
@media print { :root {color-scheme:light!important;} .fw403-switch,.fw403-utility {display:none!important;} }
@media(forced-colors:active){.fw403-disc {background:Canvas;border-color:ButtonText;border-inline-start-width:7px;} }

@media screen and (forced-colors:none) {
  html:root body .fw308-recommendation {background:var(--reading-wash)!important; color:var(--reading-text); border-color:var(--reading-rule)!important; box-shadow:none!important;}
  html:root body .fw308-recommendation :is(a,b,.cb-r249-recommendation-label) {color:var(--reading-accent)!important; border-color:var(--reading-rule)!important;}
  html:root body .fw308-recommendation b {background:transparent!important;}
  html:root body #main .pf-spatial-scene :is(h1,h2,h3,p,small,li) {color:#e4eee6!important;}
  html:root body #main .pf-spatial-scene :is(.pf-button,.pf-product-button) {color:#edf4ed;}
}
@media(max-width:640px){
  html[data-fw-mode] body #main .cb-r204-filter-chips:has([data-fw-filter-picker]) {display:block!important; overflow:visible!important;}
  html[data-fw-mode] body #main .cb-r204-filter-chips:has([data-fw-filter-picker]) a {display:none!important;}
  html[data-fw-mode] body #main .cb-r204-filter-chips select[data-fw-filter-picker] {display:block!important; width:100%; min-width:0; min-height:42px; padding:6px 10px; border:1px solid var(--reading-rule); border-radius:5px; color:var(--reading-text); background:var(--reading-sheet); font:inherit; }
}

@media screen and (forced-colors:none) {
  html:root body .pf-header-r200 .pf-menu-toggle span {background-color:var(--reading-text)!important;}
  html:root body #main .oa387-home .oa387-kicker {color:var(--reading-accent);}
}

html:not([data-fw-mode]) body .fw403-switch {display:none;}
html:root body .fw403-switch {grid-template-rows:16px 12px; align-content:center; row-gap:2px;}
html:root body .fw403-switch small {display:block; color:inherit; font:500 10px/12px system-ui,sans-serif; letter-spacing:0;}
html:root body .admin-brand>.fw403-switch {margin-inline-start:auto;}

@media screen and (forced-colors:none) {
  html:root body #main :is(.pf-meta-scene,.pf-character-scene) .pf-scene-content :is(.pf-meta-heading,.pf-character-intro,.pf-eyebrow,p),
  html:root body #main .pf-example-video figcaption :is(h3,p) {color:#e1ece4!important;}
  html:root body #main :is(.fw-practice-section,.fw-practice-card,.fw-practice-card details),
  html:root body:is([data-path="/services/spatial-experience"],[data-path="/solutions/training"]) #main :is(.pf-product-hero,.pf-product-section) {background-color:var(--reading-sheet)!important;color:var(--reading-text)!important;}
  html:root body #main :is(.fw-practice-section,.fw-practice-card) :is(h2,h3,p,summary),
  html:root body:is([data-path="/services/spatial-experience"],[data-path="/solutions/training"]) #main :is(.pf-product-hero,.pf-product-section) :is(h1,h2,h3,p) {color:var(--reading-text)!important;}
}

@media screen and (forced-colors:none) {
 html:root body #main .fw-practice-card .fw-practice-field {background:var(--reading-wash);color:var(--reading-text);}
}
@media (max-width:480px) {
 body.ops-workspace .ops-header {padding-inline:12px;gap:8px;}
 body.ops-workspace .ops-user {gap:6px;min-width:0;}
 body.ops-workspace .ops-user>a:first-child {display:none;}
}

@media screen and (forced-colors:none) {
  html:root body.pf-tools-suite #workspace details summary {color:var(--reading-text);}
}
