/*
 * Harness Architecture: the reading shell's styles, verbatim from www.testfit.io
 * (read 2026-11-03): the harness rules of the Webflow site's stylesheet, then the
 * hub page's inline harness-css, harness-consent-contrast and harness-pending-css
 * sheets (the one rule only the essay template has is in host-essay.css). Two changes
 * from live (2026-11-05): the study label's teal is darkened from #1f7d99 (4.1:1 on the
 * study's beige, under AA) to #1b6e86 (5.1:1), and a code block scrolls in its own box
 * like a table instead of widening the page; one rule
 * of the site's own closes it.
 *
 * This is the studies app's code, not the site's: the shell and the frames it
 * holds (/studies/library/panel, /studies/essays/<slug>) change together, in
 * the studies app's own palette, type (IBM Plex) and pixel sizes. It is kept as
 * live has it, outside src/ and the house tokens, so it can be replaced whole
 * when the studies app changes it, ideally served by the studies app itself.
 * See PROJECT-NOTES.md, 2026-11-03, "Harness Architecture".
 */

/* The Webflow stylesheet's harness rules. */
.harness-page{color:#f0ecee;background-color:#221e1f;min-height:100vh;font-family:IBM Plex Sans}
.harness-topbar{background-color:#1a1617;border-bottom:1px solid #3a3637;justify-content:space-between;align-items:center;column-gap:15px;padding:12px 24px;display:flex}
.harness-logo{padding-top:6px;padding-bottom:6px;text-decoration:none;display:flex}
.harness-logo-mark{width:110px;height:38px}
.harness-support{color:#141112;background-color:#f67d20;border-radius:4px;padding:12px 20px;font-family:IBM Plex Sans;font-size:15px;font-weight:700;line-height:1.2;text-decoration:none}
.harness-bar{display:none}
.harness-bar-title{color:#f0ecee;letter-spacing:-.02em;padding-top:10px;padding-bottom:10px;font-size:18px;font-weight:700;text-decoration:none}
.harness-accent{color:#f67d20}
.harness-index-toggle{color:#f0ecee;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;background-color:#0000;border:1px solid #3a3637;border-radius:5px;align-items:center;column-gap:8px;min-height:44px;padding-left:12px;padding-right:12px;font-family:IBM Plex Mono;font-size:11px;text-decoration:none;display:flex}
.harness-layout{align-items:stretch;display:flex}
.harness-index{color:#f0ecee;background-color:#181516;border-right:1px solid #3a3637;flex-direction:column;flex:0 0 300px;align-self:flex-start;width:300px;height:100vh;font-family:IBM Plex Sans;display:flex;position:sticky;top:0;overflow-y:auto}
.harness-index-head{flex-direction:column;row-gap:10px;padding:28px 24px 18px;display:flex}
.harness-wordmark{color:#f0ecee;letter-spacing:-.02em;font-size:24px;font-weight:700;line-height:1.1;text-decoration:none}
.harness-byline{color:#b0a5aa;letter-spacing:.12em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:11px}
.harness-intro{color:#b0a5aa;border:1px dashed #4a4546;border-radius:4px;padding:10px 12px;font-size:13px;line-height:1.5}
.harness-index-tb{grid-column-gap:1px;grid-row-gap:1px;background-color:#3a3637;border:1px solid #3a3637;grid-template-rows:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-bottom:16px;margin-left:20px;margin-right:20px;display:grid}
.harness-tb{grid-column-gap:1px;grid-row-gap:1px;background-color:#3a3637;border:1px solid #3a3637;grid-template-rows:auto;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));display:grid}
.harness-tb-cell{background-color:#1a1617;flex-direction:column;row-gap:4px;padding:10px 14px;display:flex}
.harness-tb-label{color:#b0a5aa;letter-spacing:.14em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:10px;line-height:1.4}
.harness-tb-value{color:#f0ecee;font-family:IBM Plex Sans;font-size:15px;font-weight:600;line-height:1.4}
.harness-tb-mono{color:#f0ecee;overflow-wrap:anywhere;font-family:IBM Plex Mono;font-size:12px;line-height:1.5}
.harness-index-rule{border-top:1px solid #3a3637;justify-content:space-between;align-items:baseline;column-gap:8px;padding:10px 24px 8px;display:flex}
.harness-index-label{color:#68bbd5;letter-spacing:.14em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:11px}
.harness-index-note{color:#b0a5aa;letter-spacing:.08em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:10px}
.harness-index-nav{flex-direction:column;padding-bottom:12px;padding-left:12px;padding-right:12px;display:flex}
.harness-index-foot{border-top:1px solid #3a3637;flex-direction:column;row-gap:6px;margin-top:auto;padding:16px 24px 24px;display:flex}
.harness-bloglink{color:#68bbd5;padding-top:6px;padding-bottom:6px;font-size:13px;text-decoration:none}
.harness-bloglink:hover{color:#00adef}
.harness-copy{color:#b0a5aa;font-family:IBM Plex Mono;font-size:10px}
.harness-canvas{background-color:#221e1f;background-image:linear-gradient(#2a2526 1px,#0000 1px),linear-gradient(90deg,#2a2526 1px,#0000 1px);background-position:-1px -1px;background-size:40px 40px;flex:560px;min-width:0;padding:56px 36px 64px}
.harness-column{flex-direction:column;max-width:760px;margin-left:auto;margin-right:auto;display:flex}
.harness-essay{flex-direction:column;row-gap:20px;display:flex}
.harness-label{color:#68bbd5;letter-spacing:.14em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:12px;line-height:1.4}
.harness-title{color:#f0ecee;letter-spacing:-.02em;margin-top:0;margin-bottom:0;font-family:IBM Plex Sans;font-size:clamp(36px,4vw,52px);font-weight:700;line-height:1.05}
.harness-paper{color:#4a4540;background-color:#fffaf2;border-radius:4px;flex-direction:column;row-gap:22px;padding:48px clamp(20px,5vw,56px);font-family:IBM Plex Sans;font-size:18px;line-height:1.75;display:flex}
.harness-endnote{color:#b0a5aa;letter-spacing:.08em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:11px;line-height:1.4}
.harness-feed{flex-direction:column;display:flex}
.harness-inline{margin-right:.35em;display:inline}
.harness-inline-tight,.harness-label-date,.harness-endnote-date{display:inline}
.harness-original{color:#68bbd5;letter-spacing:.08em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:11px;line-height:1.4;text-decoration:none}
.harness-original:hover{color:#00adef}
.harness-prose{width:100%;display:block}
.harness-index-list{display:block}
.harness-index-items{flex-direction:column;display:flex}
.harness-index-link{color:#d8ced2;border:1px solid #0000;border-radius:5px;flex-direction:column;row-gap:4px;margin-top:1px;margin-bottom:1px;padding:9px 12px;text-decoration:none;display:flex}
.harness-index-link:hover{color:#f0ecee}
.harness-index-title{font-size:13.5px;line-height:1.35}
.harness-index-date{color:#b0a5aa;letter-spacing:.06em;text-transform:uppercase;font-family:IBM Plex Mono;font-size:10px;line-height:1.4}
.harness-paper-lede{color:#1a1617;margin-top:0;margin-bottom:0;font-size:20px;line-height:1.6}
.harness-paper-link{color:#1a1617;letter-spacing:.08em;text-transform:uppercase;font-family:IBM Plex Mono,monospace;font-size:12px}
.harness-resource-entry{margin-top:24px}
.harness-resource-entry-link{color:#fff;text-underline-offset:3px;text-decoration:underline}
.harness-resource-entry-link:focus{outline-offset:4px;outline:2px solid #fff}
@media screen and (max-width:991px){.harness-bar{z-index:40;background-color:#181516;border-bottom:1px solid #3a3637;justify-content:space-between;align-items:center;column-gap:12px;padding:6px 16px;display:flex;position:sticky;top:0}.harness-layout{flex-direction:column}.harness-index{border-bottom:1px solid #3a3637;border-right-width:0;flex-basis:auto;width:100%;height:auto;position:static}.harness-canvas{flex-basis:auto}}
@media screen and (max-width:767px){.harness-topbar{column-gap:12px;padding:10px 16px}.harness-logo-mark{width:96px;height:33px}.harness-support{padding-left:16px;padding-right:16px;font-size:14px}.harness-tb{grid-template-rows:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.harness-tb-cell{padding:9px 12px}.harness-tb-value{font-size:14px}.harness-tb-mono{font-size:11px}.harness-canvas{background-size:32px 32px;padding:28px 12px 40px}.harness-essay{row-gap:16px}.harness-label{font-size:11px}.harness-title{font-size:32px;line-height:1.08}.harness-paper{row-gap:18px;padding:24px 18px;font-size:17px;line-height:1.7}.harness-endnote{font-size:10px}.harness-paper-lede{font-size:18px}}

/* harness-css */
/* Harness Architecture essay template: states, script-built parts, essay prose. */
body:has(.harness-page){background-color:#221e1f}
.harness-page .w-dyn-empty{display:none}
.harness-index-link.w--current,.harness-index-link.harness-current{background-color:#302016;border-color:#674127;color:#ffc599}
.harness-index-year{padding:10px 12px 4px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.12em;color:#b0a5aa}
.harness-sep{display:flex;align-items:center;gap:15px;margin:64px 0}
.harness-sep:before,.harness-sep:after{content:"";flex:1 1 auto;height:1px;background:#3a3637}
.harness-sep span{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#68bbd5;white-space:nowrap}
.harness-loader{margin-top:64px;border:1px dashed #3a3637;border-radius:4px;background:#1a1617;padding:20px 24px;display:flex;flex-direction:column;gap:12px}
.harness-loader-k{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#68bbd5}
.harness-loader-t{font-family:'IBM Plex Sans',sans-serif;font-weight:600;font-size:18px;color:#f0ecee}
.harness-loader-t a{color:#68bbd5}
.harness-loader-bar{height:2px;background:#3a3637;position:relative;overflow:hidden}
.harness-loader-bar:after{content:"";position:absolute;left:0;top:0;height:2px;width:40%;background:#f67d20}
.harness-prose{color:#4a4540;font-family:'IBM Plex Sans',sans-serif;font-size:18px;line-height:1.75}
.harness-prose>*{margin-top:0;margin-bottom:22px}
.harness-prose>:last-child{margin-bottom:0}
.harness-prose p{margin-bottom:22px;font-size:inherit;line-height:inherit;color:inherit}
.harness-prose>p:first-child{font-size:20px;line-height:1.6;color:#1a1617}
.harness-prose h1,.harness-prose h2,.harness-prose h3,.harness-prose h4,.harness-prose h5,.harness-prose h6{margin:38px 0 18px;font-family:'IBM Plex Sans',sans-serif;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:#1a1617}
.harness-prose h1,.harness-prose h2,.harness-prose h3{font-size:28px}
.harness-prose h4,.harness-prose [data-look='4']{font-size:22px}
.harness-prose h5,.harness-prose h6{font-size:18px}
.harness-prose a{color:#1a1617;text-decoration:underline;text-decoration-color:#68bbd5;text-underline-offset:3px}
.harness-prose a:hover{text-decoration-color:#00adef}
.harness-prose strong{color:#1a1617;font-weight:600}
.harness-prose ul,.harness-prose ol{margin-bottom:22px;padding-left:24px}
.harness-prose li{margin-bottom:4px}
.harness-prose blockquote{margin:28px 0;padding:0 0 0 18px;border-left:3px solid #c9c4c5;color:#5f5a54;font-size:inherit;line-height:inherit}
.harness-prose figure{margin:28px 0}
.harness-prose figcaption{margin-top:8px;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.04em;color:#5f5a54}
.harness-prose img{border-radius:2px}
.harness-prose hr{border:0;border-top:1px solid #c9c4c5}
.harness-prose code{font-family:'IBM Plex Mono',monospace;font-size:.9em}
.harness-study{margin:0;padding:14px 18px;border:1px dashed #c9c4c5;border-radius:4px;background:#f6efe3;display:flex;flex-direction:column;gap:6px}
.harness-study-k{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#1b6e86}
.harness-prose .harness-study-a{font-weight:600;font-size:16px;line-height:1.5}
.harness-table,.harness-figure,.harness-prose pre{overflow-x:auto}
.harness-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.harness-table th,.harness-table td{padding:8px 10px;border-bottom:1px solid #e3ddd3;text-align:left;vertical-align:top}
.harness-table th{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:#5f5a54}
.harness-figure svg{display:block;max-width:100%;height:auto}
.harness-framed body{overflow:hidden}
.harness-framed .harness-page{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0}
.harness-framed .harness-layout{flex:1 1 auto;min-height:0}
.harness-framed .harness-index{height:auto;position:static;align-self:stretch}
.harness-framed .harness-canvas{display:flex;padding:0;min-height:0;background:none}
.harness-framed .harness-column{display:none}
.harness-viewport{position:relative;display:flex;flex:1 1 auto;min-width:0;min-height:0}
.harness-viewport.harness-loading:before{content:"";position:absolute;left:0;top:0;z-index:2;width:40%;height:2px;background:#f67d20;animation:harness-loading 1.1s ease-in-out infinite}
@keyframes harness-loading{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
.harness-essay-frame{display:block;flex:1 1 auto;width:100%;height:100%;border:0;background:#221e1f}
.harness-library-frame{position:fixed;left:-10000px;top:0;width:300px;height:100vh;border:0;visibility:hidden}
.harness-index.harness-index-library{overflow:hidden}
.harness-index.harness-index-library>*{display:none}
.harness-index.harness-index-library>.harness-library-frame{display:block;position:static;flex:1 1 auto;width:100%;height:auto;min-height:0;visibility:visible;background:#181516}
@media screen and (max-width:991px){
.harness-framed .harness-canvas{flex:1 1 auto}
.harness-js.harness-index-open .harness-index.harness-index-library{height:calc(100vh - var(--harness-drawer-top,57px));height:calc(100dvh - var(--harness-drawer-top,57px))}
.harness-js .harness-index{display:none}
.harness-js.harness-index-open .harness-index{display:flex;position:fixed;left:0;right:0;top:var(--harness-drawer-top,57px);height:auto;max-height:calc(100vh - var(--harness-drawer-top,57px));overflow-y:auto;z-index:60}
}
.harness-fab,.harness-eye{display:none}
@media screen and (max-width:767px){
.harness-js .harness-topbar,.harness-js .harness-bar{display:none}
.harness-js .harness-fab{display:block;position:fixed;top:10px;left:12px;z-index:80}
.harness-fab-menu{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #3a3637;border-radius:5px;background:#1a1617;cursor:pointer}
.harness-fab-menu svg{width:20px;height:24px}
.harness-fab-panel{position:absolute;top:48px;left:0;display:flex;flex-direction:column;min-width:220px;padding:6px;border:1px solid #3a3637;border-radius:5px;background:#181516}
.harness-fab-panel[hidden]{display:none}
.harness-fab-panel a,.harness-fab-panel button{display:block;padding:12px;border:0;border-radius:4px;background:none;color:#f0ecee;font-family:'IBM Plex Sans',sans-serif;font-size:15px;line-height:1.2;text-align:left;text-decoration:none;cursor:pointer}
.harness-fab-panel a:hover,.harness-fab-panel button:hover{background:#302016;color:#ffc599}
.harness-fab-panel .harness-fab-support{margin-top:6px;background:#f67d20;color:#141112;font-weight:700;text-align:center}
.harness-js .harness-eye:not([hidden]){display:flex;align-items:center;justify-content:center;position:fixed;top:10px;right:12px;z-index:80;width:40px;height:40px;padding:0;border:1px solid #3a3637;border-radius:5px;background:#1a1617;color:#f0ecee;cursor:pointer}
.harness-eye svg{width:20px;height:20px}
.harness-js.harness-index-open .harness-index{padding-top:56px}
.harness-js:not(.harness-framed) .harness-canvas{padding-top:62px}
.harness-prose{font-size:17px;line-height:1.7}
.harness-prose>p:first-child{font-size:18px}
.harness-prose h1,.harness-prose h2,.harness-prose h3{font-size:24px}
.harness-table table{font-size:14px}
.harness-tb .harness-tb-cell:nth-child(3){grid-column:1/-1}
.harness-sep{margin:44px 0;gap:12px}
.harness-loader{margin-top:44px;padding:16px 18px}
}

/* harness-consent-contrast */
/* Harness outer pages only. Keep HubSpot's existing orange and consent behavior.
   The extra page scope outranks the provider's two-ID color rule without !important. */
body:has(.harness-page) #hs-eu-cookie-confirmation #hs-eu-confirmation-button {
  color: #111111;
}

/* harness-pending-css */
html.harness-pending .harness-column{visibility:hidden}
html.harness-pending .harness-canvas{position:relative}
html.harness-pending .harness-canvas:before{content:"";position:absolute;left:0;top:0;z-index:2;width:40%;height:2px;background:#f67d20;animation:harness-loading 1.1s ease-in-out infinite}
html.harness-pending-index .harness-index>*{visibility:hidden}
@media screen and (max-width:991px){html.harness-pending-index .harness-index{display:none}}
@media screen and (max-width:767px){html.harness-pending .harness-topbar,html.harness-pending .harness-bar{display:none}}

/* The site's, not live's: what live's Webflow base styles gave the shell's plain
   text (the hub's line and reading guides), a fixed 16px at 1.4, where the
   site's body text follows the viewport. */
.harness-page{font-size:16px;line-height:1.4}

/* The site's, not live's: the bar's product links as the runtime styles them,
   for a reader without JavaScript (the runtime's own sheet takes over with it). */
.harness-products{display:flex;align-items:center;gap:4px;margin-left:auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.harness-products::-webkit-scrollbar{display:none}
.harness-products a{flex:none;padding:10px 12px;border-radius:4px;color:#f0ecee;font:500 14px/1.2 Roboto,Arial,sans-serif;text-decoration:none;white-space:nowrap}
.harness-products a:hover{background:rgba(127,127,127,.15)}
.harness-products a:focus-visible{outline:2px solid #f67d20;outline-offset:2px}
@media screen and (max-width:767px){.harness-products{display:none}}

/* The site's, not live's: HubSpot's pop-ups (the mailing list one, and any other
   overlay or pop-up form it is set to show site-wide) stay off these pages, so
   nothing covers the reader. */
body:has(.harness-page) :is(#hs-interactives-modal-overlay,#hs-web-interactives-top-anchor,#hs-web-interactives-top-push-anchor,#hs-web-interactives-bottom-anchor,#hs-web-interactives-floating-container,[id^="hs-overlay-cta-"],.leadinModal){display:none!important}
