/*!
 * Sagentic readiness calculator: styles (2.4.0)
 * From the canvas, unchanged except that every rule is scoped to the calculator (.sg),
 * so nothing here can restyle the rest of the website, and site styles are unlikely to reach in.
 * :where(.sg) adds no specificity, so the cascade is exactly the canvas cascade.
 * Colours, type and spacing are documented in DESIGN-SYSTEM.md; the tokens live on .sg below.
 */
.sg { --navy: #0B1F33; --navy7: #2D4257; --ink: #4A5868; --slate: #6B7A8A; --mist: #C8D1DB; --mist1: #E4E9ED; --bone: #F7F6EF; --paper: #FDFCF8; --red: #FF3B2E; --red7: #C8241A; --amber: #FFB020; --amber1: #FFF1D6; --amber3: #FEDFA3; --line: rgba(11, 31, 51, 0.12); --cut: cubic-bezier(0.2, 0, 0, 1); --travel: cubic-bezier(0.65, 0, 0.35, 1); --spring: cubic-bezier(0.2, 0.9, 0.3, 1.25); --fd: 'Sora', 'Avenir Next', 'Segoe UI', system-ui, sans-serif; --ft: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --fm: 'Courier Prime', 'Courier New', Courier, monospace; --lift: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 22px rgba(11, 31, 51, 0.07); --lift2: 0 2px 4px rgba(11, 31, 51, 0.08), 0 18px 40px rgba(11, 31, 51, 0.14); font-family: var(--ft); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; background-image: radial-gradient(rgba(11, 31, 51, 0.07) 1px, transparent 1.4px); background-size: 22px 22px; }
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg :where(h1, h2, h3, p, ol, ul, li) { margin: 0; }
.sg h1, .sg h2, .sg h3 { text-wrap: balance; }
.sg p { text-wrap: pretty; }
.sg img { display: block; }
.sg i { display: block; font-style: normal; }
.sg button:focus-visible, .sg a:focus-visible, .sg input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* type and marks */
:where(.sg) .label { font-family: var(--ft); font-weight: 600; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
:where(.sg) .h3 { font-family: var(--fd); font-weight: 600; font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem); line-height: 1.25; letter-spacing: -0.005em; }
:where(.sg) .ink { color: var(--ink); }
:where(.sg) .mistc { color: var(--mist); }
:where(.sg) .amberc { color: var(--amber); }
:where(.sg) .sq { display: block; width: 8px; height: 8px; background: var(--red); flex: none; }
:where(.sg) .hatch { display: inline-block; width: 20px; height: 10px; border: 1px solid var(--slate); background-image: repeating-linear-gradient(135deg, var(--slate) 0, var(--slate) 2px, transparent 2px, transparent 7px); flex: none; }
:where(.sg) .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); }
:where(.sg) .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); }
:where(.sg) .dashbar { display: inline-block; width: 44px; height: 14px; border: 1.5px dashed var(--slate); border-radius: 4px; flex: none; }
:where(.sg) .wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 5vw, 64px); padding-right: clamp(16px, 5vw, 64px); }

/* navy surfaces */
:where(.sg) .room { position: relative; overflow: hidden; isolation: isolate; color: var(--bone); background-color: #0B1F33; background-image: radial-gradient(110% 90% at 80% 0%, #1B3A5E 0%, rgba(11, 31, 51, 0) 60%), radial-gradient(80% 70% at 0% 100%, #0F2D4D 0%, rgba(11, 31, 51, 0) 60%); }
:where(.sg) .room::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(200, 209, 219, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 209, 219, 0.05) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 80% at 70% 20%, #000 0%, transparent 85%); -webkit-mask-image: radial-gradient(80% 80% at 70% 20%, #000 0%, transparent 85%); }

/* motion */
:where(.sg) .scr { animation-duration: 300ms; animation-timing-function: var(--cut); animation-fill-mode: backwards; }
@keyframes scr0 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes scr1 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes scr2 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes clunk { from { opacity: 0; transform: translateY(-10px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes lightup { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cutdown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stampin { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* buttons and links */
:where(.sg) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 9px 0 24px; background: var(--navy); color: var(--bone); border: 1px solid var(--navy); border-radius: 16px; font-family: var(--ft); font-size: 1rem; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px rgba(11, 31, 51, 0.2); transition: background-color 80ms linear, transform 160ms var(--cut), box-shadow 160ms var(--cut); }
:where(.sg) .btnic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--red); transition: transform 180ms var(--cut); }
:where(.sg) .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 31, 51, 0.26); }
:where(.sg) .btn:hover .btnic { transform: translateX(3px); }
:where(.sg) .btn:active { background: var(--navy7); transform: none; }
:where(.sg) .btn[disabled] { background: transparent; color: var(--ink); border: 1.5px dashed var(--slate); box-shadow: none; cursor: not-allowed; transform: none; }
:where(.sg) .btn[disabled] .btnic { background: var(--mist); transform: none; }
:where(.sg) .btninv { background: var(--bone); color: var(--navy); border-color: var(--bone); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
:where(.sg) .btninv:active { background: var(--mist); }
:where(.sg) .btn2 { background: var(--paper); color: var(--navy); border-color: rgba(11, 31, 51, 0.2); box-shadow: var(--lift); padding: 0 24px; }
:where(.sg) .lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; background: none; border: 0; font-family: var(--ft); font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--ink); text-align: left; cursor: pointer; }
:where(.sg) .lnk .u { background-image: linear-gradient(var(--navy), var(--navy)), linear-gradient(var(--slate), var(--slate)); background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 0% 1px, 100% 1px; padding-bottom: 3px; transition: background-size 160ms var(--cut); }
:where(.sg) .lnk:hover { color: var(--navy); }
:where(.sg) .lnk:hover .u { background-size: 100% 1px, 100% 1px; }
:where(.sg) .lnk.strong { color: var(--navy); font-weight: 600; }
:where(.sg) .tl { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.sg) .tl:hover { text-decoration-color: var(--red); }

/* header: wordmark, the strip of slots, where you are */
:where(.sg) .top { position: relative; z-index: 5; background: rgba(247, 246, 239, 0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:where(.sg) .topbar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; align-items: center; column-gap: 24px; row-gap: 10px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
:where(.sg) .wm { height: 22px; width: auto; }
:where(.sg) .strip { display: flex; justify-content: center; gap: 16px; min-width: 0; }
:where(.sg) .sgroup { display: flex; gap: 4px; }
:where(.sg) .es { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1.5px dashed rgba(107, 122, 138, 0.6); display: flex; align-items: center; justify-content: center; }
:where(.sg) .es.on { border: 1.5px solid var(--navy); background: var(--amber1); }
:where(.sg) .es img { width: 118%; height: 118%; animation: clunk 380ms var(--spring) backwards; }
:where(.sg) .es.now { border: 2px solid var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); }
:where(.sg) .where { justify-self: end; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
:where(.sg) .wtext { font-family: var(--fm); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; color: var(--navy); white-space: nowrap; }
:where(.sg) .togo { font-size: 0.75rem; font-weight: 600; line-height: 1.2; color: var(--navy); background: var(--amber1); border: 1px solid rgba(255, 176, 32, 0.6); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* start */
:where(.sg) .intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; padding-top: clamp(36px, 5.5vw, 80px); padding-bottom: clamp(36px, 4vw, 56px); }
:where(.sg) .introL { grid-column: 1 / span 6; }
:where(.sg) .introR { grid-column: 7 / span 6; }
:where(.sg) .ititle { font-family: var(--fd); font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 2.7vw, 3.875rem); line-height: 1.02; letter-spacing: -0.028em; margin: 22px 0 18px; }
:where(.sg) .isub { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); line-height: 1.5; color: var(--ink); max-width: 26em; margin-bottom: 32px; }
:where(.sg) .startrow { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
:where(.sg) .privacy { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
:where(.sg) .privacy svg { flex: none; }
:where(.sg) .excard { border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(11, 31, 51, 0.18), 0 2px 6px rgba(11, 31, 51, 0.06); }
:where(.sg) .exhero { padding: 20px 24px 22px; }
:where(.sg) .exhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
:where(.sg) .exbands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.sg) .exq { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
:where(.sg) .exqh { display: flex; align-items: center; gap: 10px; }
:where(.sg) .exqi { width: 40px; height: 40px; flex: none; border-radius: 11px; overflow: hidden; background: var(--amber3); border: 1.5px solid var(--bone); }
:where(.sg) .exqi img { width: 100%; height: 100%; }
:where(.sg) .exqk { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
:where(.sg) .exqn { font-family: var(--fd); font-weight: 600; font-size: 0.9375rem; line-height: 1.25; color: var(--bone); }
:where(.sg) .exqt { font-family: var(--fd); font-weight: 700; font-size: 1.3125rem; line-height: 1.18; letter-spacing: -0.015em; color: var(--bone); }
:where(.sg) .exqp { font-size: 0.875rem; line-height: 1.5; color: var(--mist); }
:where(.sg) .exbody { padding: 18px 24px 20px; }
:where(.sg) .exgrid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
:where(.sg) .exbody > .label + .exgrid { margin-top: 10px; }
:where(.sg) .exget { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--mist); display: grid; gap: 8px; }
:where(.sg) .exget li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--navy); }
:where(.sg) .exget svg { flex: none; margin-top: 2px; }
:where(.sg) .mt { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
:where(.sg) .mt img { width: 100%; height: 100%; }
:where(.sg) .mt.on { background: var(--amber3); border: 1.5px solid var(--navy); }
:where(.sg) .mt.half { background: linear-gradient(to top, var(--amber3) 50%, var(--paper) 50%); border: 1.5px solid var(--navy); }
:where(.sg) .mt.off { border: 1.5px dashed var(--slate); }
:where(.sg) .mt.off img, :where(.sg) .mt.wait img { filter: grayscale(1); opacity: 0.4; }
:where(.sg) .mt.wait { border: 1px solid var(--slate); background-image: repeating-linear-gradient(135deg, rgba(107, 122, 138, 0.35) 0, rgba(107, 122, 138, 0.35) 1.5px, transparent 1.5px, transparent 5px); }
:where(.sg) .mt.na { background: var(--mist1); }
:where(.sg) .mt.na img { opacity: 0.6; }
:where(.sg) .exfoot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mist); font-size: 0.8125rem; line-height: 1.45; color: var(--ink); }
:where(.sg) .areas { padding: 28px 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
:where(.sg) .areash { color: var(--ink); margin-bottom: 18px; }
:where(.sg) .arow { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; row-gap: 10px; align-items: start; padding: 10px 0; }
:where(.sg) .alab { padding-top: 9px; color: var(--navy); }
:where(.sg) .achips { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.sg) .achip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 12px 3px 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--navy); }
:where(.sg) .achip img { width: 30px; height: 30px; margin: -3px 0; }

/* questions: one centred column */
:where(.sg) .qcol { max-width: 760px; margin: 0 auto; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(56px, 7vw, 96px); }
:where(.sg) .backlnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 0; background: none; border: 0; font-family: var(--ft); font-size: 0.9375rem; font-weight: 500; color: var(--ink); cursor: pointer; }
:where(.sg) .backlnk:hover { color: var(--navy); }
:where(.sg) .backlnk svg { transition: transform 160ms var(--cut); }
:where(.sg) .backlnk:hover svg { transform: translateX(-3px); }
:where(.sg) .qarea { display: flex; align-items: center; gap: 14px; margin: 14px 0 18px; }
:where(.sg) .qicon { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 31, 51, 0.05); display: flex; align-items: center; justify-content: center; }
:where(.sg) .qicon img { width: 120%; height: 120%; }
:where(.sg) .qdim { color: var(--navy); }
:where(.sg) .qtext { font-family: var(--fd); font-weight: 700; font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.375rem); line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 14px; }
:where(.sg) .qsub { font-family: var(--fd); font-weight: 600; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.3; letter-spacing: -0.01em; margin: 34px 0 10px; }
:where(.sg) .helper { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 62ch; margin-bottom: 18px; }
:where(.sg) .lookbtn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 13px; margin-bottom: 18px; background: var(--paper); border: 1px solid rgba(11, 31, 51, 0.18); border-radius: 999px; color: var(--navy); font-family: var(--ft); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 140ms linear, color 140ms linear; }
:where(.sg) .lookbtn:hover, :where(.sg) .lookbtn[aria-expanded="true"] { background: var(--navy); color: var(--bone); }
:where(.sg) .lookbtn:hover path, :where(.sg) .lookbtn:hover circle, :where(.sg) .lookbtn[aria-expanded="true"] path, :where(.sg) .lookbtn[aria-expanded="true"] circle { stroke: var(--bone); }
:where(.sg) .lookpanel { padding: 14px 18px; margin: -6px 0 20px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; font-size: 0.9375rem; line-height: 1.6; color: var(--navy); animation: cutdown 240ms var(--cut) backwards; }
:where(.sg) .opts { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 6px; }
:where(.sg) .opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 11px 16px 11px 12px; background: var(--paper); color: var(--navy); border: 1px solid var(--line); border-radius: 14px; text-align: left; font-family: var(--ft); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; cursor: pointer; box-shadow: 0 1px 2px rgba(11, 31, 51, 0.05); transition: border-color 120ms linear, background-color 120ms linear, color 120ms linear, box-shadow 160ms var(--cut); }
:where(.sg) .opt:hover { border-color: rgba(11, 31, 51, 0.4); box-shadow: var(--lift); }
:where(.sg) .okey { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(11, 31, 51, 0.16); background: var(--bone); display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-weight: 700; font-size: 0.875rem; line-height: 1; color: var(--navy); }
:where(.sg) .olab { flex: 1 1 auto; min-width: 0; }
:where(.sg) .ind { flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--slate); }
:where(.sg) .ind.box { border-radius: 6px; }
:where(.sg) .opt[aria-pressed="true"] { background: var(--navy); color: var(--bone); border-color: var(--navy); box-shadow: 0 8px 20px rgba(11, 31, 51, 0.2); }
:where(.sg) .opt[aria-pressed="true"] .okey { background: var(--amber); border-color: var(--amber); color: var(--navy); }
:where(.sg) .opt[aria-pressed="true"] .ind { border-color: var(--bone); }
:where(.sg) .opt[aria-pressed="true"] .ind::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--red); }
:where(.sg) .opt[aria-pressed="true"] .ind.box { background: var(--red); border-color: var(--red); }
:where(.sg) .opt[aria-pressed="true"] .ind.box::after { inset: auto; left: 6px; top: 2px; width: 6px; height: 11px; border-radius: 0; background: none; border: solid var(--bone); border-width: 0 2px 2px 0; transform: rotate(45deg); }
:where(.sg) .dots { flex: none; display: flex; gap: 3px; }
:where(.sg) .dt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(11, 31, 51, 0.25); }
:where(.sg) .dt.on { background: var(--navy); border-color: var(--navy); }
:where(.sg) .dt.rg { border-color: var(--navy); background-image: repeating-linear-gradient(135deg, var(--navy) 0, var(--navy) 1.5px, transparent 1.5px, transparent 3px); }
:where(.sg) .opt[aria-pressed="true"] .dt { border-color: rgba(247, 246, 239, 0.35); }
:where(.sg) .opt[aria-pressed="true"] .dt.on { background: var(--amber); border-color: var(--amber); }
:where(.sg) .opt[aria-pressed="true"] .dt.rg { border-color: var(--amber); background-image: repeating-linear-gradient(135deg, var(--amber) 0, var(--amber) 1.5px, transparent 1.5px, transparent 3px); }
:where(.sg) .rbar { flex: none; position: relative; width: 112px; height: 10px; border-radius: 999px; background: var(--mist1); overflow: hidden; }
:where(.sg) .rfill { position: absolute; top: 0; bottom: 0; background: var(--navy); border-radius: 999px; }
:where(.sg) .rtk { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paper); }
:where(.sg) .opt[aria-pressed="true"] .rbar { background: rgba(247, 246, 239, 0.2); }
:where(.sg) .opt[aria-pressed="true"] .rfill { background: var(--amber); }
:where(.sg) .opt[aria-pressed="true"] .rtk { background: var(--navy); }
:where(.sg) .navrow { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 28px; }

/* fields and the worked arithmetic */
:where(.sg) .fields { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 18px; }
:where(.sg) .field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; max-width: 100%; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
:where(.sg) .field label { font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
:where(.sg) .field input { width: 100%; height: 54px; padding: 0 14px; background: var(--bone); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 12px; font-family: var(--fm); font-size: 1.5rem; font-weight: 700; }
:where(.sg) .fieldnote { font-size: 0.8125rem; line-height: 1.45; color: var(--ink); }
:where(.sg) .arith { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--mist); font-size: 1.0625rem; line-height: 1.5; }
:where(.sg) .arith .expr { color: var(--ink); }
:where(.sg) .arith .res { font-family: var(--fm); font-weight: 700; font-size: 1.1875rem; color: var(--navy); background: var(--amber1); padding: 0 8px; border-radius: 6px; }
:where(.sg) .arith .say { font-weight: 600; color: var(--navy); }
:where(.sg) .err { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin: 4px 0 8px; background: var(--paper); border: 1px solid var(--red); border-radius: 12px; color: var(--navy); font-size: 0.9375rem; line-height: 1.5; }
:where(.sg) .err .sq { margin-top: 7px; }

/* halfway */
:where(.sg) .hcol { max-width: 880px; margin: 0 auto; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(56px, 7vw, 96px); }
:where(.sg) .t2h { font-family: var(--fd); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.025em; margin: 18px 0 14px; }
:where(.sg) .t2p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--ink); max-width: 36em; margin-bottom: 30px; }
:where(.sg) .statlab { display: flex; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 14px; }
:where(.sg) .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.sg) .stat { padding: 20px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--lift); display: flex; flex-direction: column; }
:where(.sg) .sbig { font-family: var(--fd); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); line-height: 1; letter-spacing: -0.02em; }
:where(.sg) .sbar { position: relative; height: 8px; border-radius: 999px; background: var(--mist1); overflow: hidden; margin: 14px 0 12px; }
:where(.sg) .sbar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--navy); border-radius: 999px; transform-origin: left center; animation: grow 700ms var(--cut) 200ms backwards; }
:where(.sg) .sbar i.neg { left: auto; right: 0; background: var(--red7); transform-origin: right center; }
:where(.sg) .stext { font-size: 0.9375rem; line-height: 1.5; color: var(--navy); flex: 1 1 auto; }
:where(.sg) .swho { color: var(--ink); margin-top: 12px; }
:where(.sg) .scap { font-size: 0.9375rem; line-height: 1.6; color: var(--ink); max-width: 64ch; margin-top: 18px; }
:where(.sg) .srcrow { margin-top: 6px; }
:where(.sg) .srcpanel { padding: 14px 18px; margin-top: 4px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--slate); border-radius: 12px; font-size: 0.8125rem; line-height: 1.65; color: var(--ink); animation: cutdown 240ms var(--cut) backwards; }

/* the sources switch */
:where(.sg) .srcbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; background: none; border: 0; font-family: var(--ft); font-size: 0.875rem; font-weight: 600; color: var(--navy); cursor: pointer; }
:where(.sg) .sw { position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; background: var(--mist); transition: background-color 160ms linear; }
:where(.sg) .sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(11, 31, 51, 0.3); transition: transform 180ms var(--cut); }
:where(.sg) .srcbtn[aria-pressed="true"] .sw { background: var(--navy); }
:where(.sg) .srcbtn[aria-pressed="true"] .sw i { transform: translateX(16px); }

/* result: the summary */
:where(.sg) .samplebar { display: flex; align-items: center; gap: 12px; background: var(--navy7); color: var(--bone); font-size: 0.875rem; font-weight: 600; line-height: 1.45; padding: 10px clamp(16px, 5vw, 64px); }
:where(.sg) .rhero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(32px, 4.5vw, 56px); }
:where(.sg) .rmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin-bottom: clamp(20px, 3vw, 30px); }
:where(.sg) .rmh { display: flex; align-items: center; gap: 10px; color: var(--amber); }
:where(.sg) .rmf { display: inline-flex; align-items: baseline; gap: 8px; }
:where(.sg) .rmf .label { color: var(--mist); }
:where(.sg) .rmf b { font-family: var(--fm); font-weight: 700; font-size: 1rem; color: var(--bone); }
:where(.sg) .tw { display: inline-block; animation: typein 400ms steps(16, end) backwards; }
:where(.sg) .tw1 { animation-delay: 300ms; }
:where(.sg) .tw2 { animation-delay: 380ms; }
:where(.sg) .tw3 { animation-delay: 460ms; }
:where(.sg) .stamp { margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 13px 6px; border: 2px solid var(--amber); outline: 1px solid var(--amber); outline-offset: 3px; border-radius: 5px; color: var(--amber); font-family: var(--fm); font-weight: 700; text-transform: uppercase; transform: rotate(-6deg); animation: stampin 180ms cubic-bezier(0.3, 1.5, 0.6, 1) 800ms backwards; }
:where(.sg) .stampw { font-size: 1.0625rem; line-height: 1; letter-spacing: 0.2em; padding-left: 0.2em; }
:where(.sg) .stampd { font-size: 0.625rem; line-height: 1; letter-spacing: 0.14em; }
:where(.sg) .bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
:where(.sg) .band { padding: clamp(20px, 2.4vw, 28px); border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.09); display: flex; flex-direction: column; }
:where(.sg) .bl { color: var(--mist); }
:where(.sg) .bname { font-family: var(--fd); font-weight: 700; font-size: clamp(2rem, 1.35rem + 2.2vw, 3.125rem); line-height: 1.02; letter-spacing: -0.028em; color: var(--bone); margin: 12px 0 10px; }
:where(.sg) .bmean { font-size: 1.0625rem; line-height: 1.5; color: rgba(247, 246, 239, 0.88); max-width: 32em; flex: 1 1 auto; }
:where(.sg) .bscore { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; margin-top: 22px; }
:where(.sg) .bnum { display: flex; align-items: baseline; gap: 6px; }
:where(.sg) .bnum b { font-variant-numeric: tabular-nums; font-family: var(--fd); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--amber); }
:where(.sg) .bnum .bof { color: var(--mist); }
:where(.sg) .bsegs { display: flex; gap: 3px; height: 12px; }
:where(.sg) .bsegs.sm { height: 8px; gap: 2px; }
:where(.sg) .bsg { flex: 1 1 0; position: relative; overflow: hidden; border-radius: 3px; background: rgba(200, 209, 219, 0.18); }
:where(.sg) .bsg i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--amber); transform-origin: left center; animation: grow 600ms var(--cut) 300ms backwards; }
:where(.sg) .bsg.cur { box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.6); }

/* result: your engine */
:where(.sg) .yeng { padding-top: clamp(36px, 4.5vw, 56px); }
:where(.sg) .yhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 16px; }
:where(.sg) .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8125rem; line-height: 1.3; color: var(--ink); }
:where(.sg) .lg { display: inline-flex; align-items: center; gap: 7px; }
:where(.sg) .lgsw { width: 16px; height: 16px; flex: none; border-radius: 5px; }
:where(.sg) .lgsw.on { background: var(--amber3); border: 2px solid var(--navy); }
:where(.sg) .lgsw.half { background: linear-gradient(to top, var(--amber3) 50%, var(--paper) 50%); border: 2px solid var(--navy); }
:where(.sg) .lgsw.off { border: 1.5px dashed var(--slate); }
:where(.sg) .lgsw.wait { border: 1px solid var(--slate); background-image: repeating-linear-gradient(135deg, rgba(107, 122, 138, 0.6) 0, rgba(107, 122, 138, 0.6) 1.5px, transparent 1.5px, transparent 4px); }
:where(.sg) .lgsw.na { background: var(--mist1); border: 1px solid var(--mist); }
:where(.sg) .lgsw.lgfirst { width: 9px; height: 9px; border-radius: 0; background: var(--red); margin: 0 3px 0 4px; }
:where(.sg) .erows { display: grid; gap: 14px; }
:where(.sg) .erow { padding: 16px 20px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--lift); }
:where(.sg) .erowlab { color: var(--ink); margin-bottom: 12px; }
:where(.sg) .etiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
:where(.sg) .etile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; animation: lightup 420ms var(--spring) backwards; }
:where(.sg) .etbox { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
:where(.sg) .etbox img { width: 100%; height: 100%; }
:where(.sg) .etname { font-size: 0.75rem; line-height: 1.3; font-weight: 600; color: var(--navy); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; text-wrap: balance; }
:where(.sg) .etstate { font-size: 0.625rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
:where(.sg) .etile.on .etbox { background: var(--amber3); border: 2px solid var(--navy); }
:where(.sg) .etile.half .etbox { background: linear-gradient(to top, var(--amber3) 50%, var(--paper) 50%); border: 2px solid var(--navy); }
:where(.sg) .etile.off .etbox { border: 1.5px dashed var(--slate); }
:where(.sg) .etile.off img { filter: grayscale(1); opacity: 0.38; }
:where(.sg) .etile.wait .etbox { border: 1px solid var(--slate); background-image: repeating-linear-gradient(135deg, rgba(107, 122, 138, 0.3) 0, rgba(107, 122, 138, 0.3) 1.5px, transparent 1.5px, transparent 7px); }
:where(.sg) .etile.wait img { filter: grayscale(1); opacity: 0.5; }
:where(.sg) .etile.na .etbox { background: var(--mist1); }
:where(.sg) .etile.na img { opacity: 0.6; }
:where(.sg) .etfirst { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; background: var(--red); }

/* result: where to start */
:where(.sg) .wstart { padding-top: clamp(40px, 5vw, 64px); }
:where(.sg) .wsgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
:where(.sg) .wsL { grid-column: 1 / span 7; }
:where(.sg) .wsR { grid-column: 8 / span 5; }
:where(.sg) .wsgrid.solo .wsL { grid-column: 1 / span 9; }
:where(.sg) .wslab { display: flex; align-items: center; gap: 10px; color: var(--ink); }
:where(.sg) .wshead { font-family: var(--fd); font-weight: 700; font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.75rem); line-height: 1.06; letter-spacing: -0.022em; margin: 12px 0 12px; }
:where(.sg) .wslede { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); max-width: 40em; margin-bottom: 20px; }
:where(.sg) .moves { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px solid var(--mist); }
:where(.sg) .move { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--mist); }
:where(.sg) .mvn { flex: none; width: 30px; font-family: var(--fm); font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
:where(.sg) .mvimg { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1.5px dashed var(--slate); display: flex; align-items: center; justify-content: center; }
:where(.sg) .mvimg img { width: 116%; height: 116%; filter: grayscale(1); opacity: 0.55; }
:where(.sg) .mvtext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
:where(.sg) .mvname { font-family: var(--fd); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
:where(.sg) .mvplain { font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
:where(.sg) .move.step .mvname { font-family: var(--ft); font-weight: 500; font-size: 1rem; line-height: 1.55; }
:where(.sg) .mvtag { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
:where(.sg) .mvtag.isfirst { color: var(--red7); }
:where(.sg) .ctacard { border-radius: 26px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 24px 56px rgba(11, 31, 51, 0.26); }
:where(.sg) .ctah { font-family: var(--fd); font-weight: 700; font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem); line-height: 1.04; letter-spacing: -0.022em; color: var(--bone); margin: 12px 0 10px; }
:where(.sg) .ctap { font-size: 1.0625rem; line-height: 1.5; color: rgba(247, 246, 239, 0.9); margin-bottom: 22px; }
:where(.sg) .ctap + .ctanote { margin-top: -14px; }
:where(.sg) .ctanote { font-weight: 600; color: var(--bone); }
:where(.sg) .ctavat { color: var(--mist); margin: -2px 0 14px; }
:where(.sg) .docmode .ctavat { color: var(--ink); }
:where(.sg) .ticks { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid rgba(200, 209, 219, 0.18); display: grid; gap: 9px; }
:where(.sg) .ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--mist); }
:where(.sg) .ticks svg { flex: none; margin-top: 2px; }

/* result: the detail, one tab at a time */
:where(.sg) .finding { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: 16px; }
:where(.sg) .fhead { margin-bottom: 10px; }
:where(.sg) .tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--mist); }
:where(.sg) .tabs { display: flex; gap: 2px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
:where(.sg) .tabs::-webkit-scrollbar { display: none; }
:where(.sg) .tab { flex: none; min-height: 50px; padding: 0 16px; margin-bottom: -1px; background: none; border: 0; border-bottom: 3px solid transparent; font-family: var(--ft); font-size: 0.9375rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: color 120ms linear, border-color 120ms linear; }
:where(.sg) .tab:hover { color: var(--navy); }
:where(.sg) .tab.on { color: var(--navy); border-bottom-color: var(--navy); }
:where(.sg) .tabbar .srcbtn { margin-bottom: 3px; }
:where(.sg) .sheet { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--lift); padding: clamp(18px, 3.5vw, 44px); }
:where(.sg) .panel { animation: scr0 260ms var(--cut) backwards; }
:where(.sg) .plede { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 72ch; margin-bottom: 8px; }
:where(.sg) .srctag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid var(--slate); border-radius: 999px; color: var(--ink); font-size: 0.6875rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; }
:where(.sg) .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
:where(.sg) .cap { font-size: 0.8125rem; line-height: 1.65; color: var(--ink); margin-top: 8px; max-width: 82ch; }
:where(.sg) .capwarn { color: var(--navy); font-weight: 500; }
:where(.sg) .capblock { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--mist); }
:where(.sg) .terms { font-size: 0.8125rem; line-height: 1.6; color: var(--ink); max-width: 90ch; margin-top: 18px; }
:where(.sg) .nytag { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }

/* engine map */
:where(.sg) .thead { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 16px; color: var(--ink); padding-bottom: 10px; }
:where(.sg) .thead span:first-child { grid-column: 2; }
:where(.sg) .thead span:last-child { grid-column: 4; }
:where(.sg) .mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px 0; border-top: 1px solid var(--mist); align-items: start; }
:where(.sg) .ticon { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 16px; background: var(--bone); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
:where(.sg) .ticon img { width: 118%; height: 118%; }
:where(.sg) .mdim { grid-column: 2 / -1; color: var(--ink); }
:where(.sg) .mtoday { grid-column: 2; }
:where(.sg) .mt1 { font-family: var(--fm); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: var(--navy); }
:where(.sg) .mt2 { font-size: 0.875rem; line-height: 1.5; color: var(--ink); margin-top: 2px; }
:where(.sg) .marrow { grid-column: 3; padding-top: 4px; }
:where(.sg) .minst { grid-column: 4; }
:where(.sg) .mi1 { font-family: var(--fd); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
:where(.sg) .mi2 { font-size: 0.875rem; line-height: 1.5; color: var(--ink); margin-top: 3px; }
:where(.sg) .minst .nytag { margin-top: 8px; }
:where(.sg) .mgap { grid-column: 2 / -1; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); margin-top: 6px; max-width: 80ch; }
:where(.sg) .mlab { display: none; color: var(--ink); margin-bottom: 2px; }

/* foundation gates */
:where(.sg) .ghead { display: grid; grid-template-columns: 56px minmax(0, 1fr) 118px minmax(0, 1.25fr); column-gap: 16px; color: var(--ink); padding-bottom: 10px; }
:where(.sg) .ghead span:first-child { grid-column: 2; }
:where(.sg) .grow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 118px minmax(0, 1.25fr); column-gap: 16px; row-gap: 4px; padding: 16px 0; border-top: 1px solid var(--mist); align-items: start; }
:where(.sg) .gdim { grid-column: 2 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); }
:where(.sg) .gdim .unsc { color: var(--ink); }
:where(.sg) .gtoday { grid-column: 2; font-family: var(--fm); font-size: 0.9375rem; line-height: 1.45; color: var(--navy); }
:where(.sg) .gstat { grid-column: 3; }
:where(.sg) .gtext { grid-column: 4; font-size: 0.9375rem; line-height: 1.55; }
:where(.sg) .gchip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border: 1px solid var(--navy); border-radius: 999px; font-family: var(--fm); font-weight: 700; font-size: 0.8125rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }

/* benchmarks */
:where(.sg) .bgroup { display: flex; align-items: center; gap: 12px; padding: 30px 0 4px; color: var(--navy); }
:where(.sg) .bgroup:first-child { padding-top: 4px; }
:where(.sg) .bgroup::before { content: ''; display: block; width: 24px; height: 2px; background: var(--navy); }
:where(.sg) .bcard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 18px; padding: 26px 0; border-top: 1px solid var(--mist); }
:where(.sg) .bside { grid-column: 1 / span 4; min-width: 0; }
:where(.sg) .bmain { grid-column: 5 / span 8; min-width: 0; }
:where(.sg) .btitle { font-family: var(--fd); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 16px; }
:where(.sg) .bfig { margin-bottom: 14px; }
:where(.sg) .bbig { font-family: var(--fd); font-weight: 700; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; }
:where(.sg) .bsmall { font-size: 0.875rem; line-height: 1.5; color: var(--ink); margin-top: 6px; max-width: 34ch; }
:where(.sg) .byou { margin-top: 16px; padding: 12px 14px 13px; background: var(--amber1); border: 1px solid rgba(255, 176, 32, 0.6); border-radius: 14px; }
:where(.sg) .byoul { display: flex; align-items: center; gap: 8px; color: var(--navy); margin-bottom: 4px; }
:where(.sg) .byout { font-family: var(--fm); font-size: 0.9375rem; line-height: 1.45; color: var(--navy); }
:where(.sg) .brow { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 72px; gap: 14px; align-items: center; margin: 10px 0; }
:where(.sg) .blab { font-size: 0.8125rem; line-height: 1.35; color: var(--ink); }
:where(.sg) .track { position: relative; display: flex; height: 16px; background: var(--mist1); border-radius: 999px; overflow: hidden; }
:where(.sg) .seg { height: 100%; }
:where(.sg) .bval { font-variant-numeric: tabular-nums; font-size: 0.875rem; font-weight: 600; text-align: right; }
:where(.sg) .dash { display: flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1.5px dashed var(--slate); border-radius: 10px; font-size: 0.8125rem; line-height: 1.4; color: var(--ink); }
:where(.sg) .axis { position: relative; height: 30px; }
:where(.sg) .atick { position: absolute; top: 0; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--ink); white-space: nowrap; }
:where(.sg) .bnote { font-size: 0.875rem; line-height: 1.6; color: var(--ink); margin-top: 12px; max-width: 72ch; }
:where(.sg) .legrow { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
:where(.sg) .legitem { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink); }
:where(.sg) .legsw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
:where(.sg) .bsrc { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--mist); }
:where(.sg) .whyrow { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--mist); }

/* the plan */
:where(.sg) .plannote { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 70ch; margin-bottom: 22px; }
:where(.sg) .firstbox { padding: 20px 22px; margin-bottom: 28px; background: #FFF6F4; border: 1.5px solid var(--red); border-radius: 18px; }
:where(.sg) .firstlab { display: flex; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 12px; }
:where(.sg) .firstitem { padding-bottom: 14px; }
:where(.sg) .fname { font-family: var(--fd); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
:where(.sg) .freason { font-size: 0.9375rem; line-height: 1.6; margin: 6px 0 10px; max-width: 76ch; }
:where(.sg) .surveyitem { padding: 14px 0; border-top: 1px solid var(--mist); }
:where(.sg) .sname { font-family: var(--fd); font-weight: 600; font-size: 1.0625rem; }
:where(.sg) .stext2 { font-size: 0.875rem; line-height: 1.55; color: var(--ink); margin-top: 4px; max-width: 76ch; }
:where(.sg) .surveytail { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 70ch; margin-top: 18px; }
:where(.sg) .phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
:where(.sg) .phase { min-width: 0; padding: 18px 18px 8px; background: var(--bone); border: 1px solid rgba(11, 31, 51, 0.07); border-radius: 20px; }
:where(.sg) .phrail { position: relative; height: 2px; background: var(--navy); margin-bottom: 14px; }
:where(.sg) .phsq { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; background: var(--red); }
:where(.sg) .phnum { color: var(--ink); }
:where(.sg) .phname { font-family: var(--fd); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 6px 0 8px; }
:where(.sg) .phempty { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); padding-bottom: 12px; }
:where(.sg) .item { padding: 13px 0; border-top: 1px solid var(--mist); }
:where(.sg) .iname { font-family: var(--fd); font-weight: 600; font-size: 1rem; line-height: 1.35; }
:where(.sg) .iplain { font-size: 0.8125rem; line-height: 1.5; color: var(--navy); margin-top: 4px; }
:where(.sg) .igate { font-size: 0.8125rem; line-height: 1.5; color: var(--ink); margin-top: 5px; }
:where(.sg) .irung { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--navy); }
:where(.sg) .inot { font-size: 0.8125rem; line-height: 1.5; color: var(--ink); margin-top: 7px; }
:where(.sg) .inot .nytag { margin-right: 6px; }

/* economics */
:where(.sg) .econgrid { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
:where(.sg) .econbox { min-width: 170px; padding: 14px 18px; background: var(--bone); border-radius: 16px; }
:where(.sg) .econlab { color: var(--ink); }
:where(.sg) .econval { font-family: var(--fm); font-weight: 700; font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem); line-height: 1.1; margin-top: 6px; color: var(--navy); }
:where(.sg) .complin { font-size: 1rem; font-weight: 600; line-height: 1.55; color: var(--navy); max-width: 70ch; margin-top: 24px; }
:where(.sg) .oob { display: flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid var(--slate); border-radius: 10px; background-image: repeating-linear-gradient(135deg, var(--slate) 0, var(--slate) 2px, transparent 2px, transparent 7px); }
:where(.sg) .oobtxt { background: var(--paper); font-size: 0.8125rem; line-height: 1.4; padding: 2px 8px; border-radius: 4px; color: var(--navy); }
:where(.sg) .week { margin-top: 30px; }

/* result: the end */
:where(.sg) .rend { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-top: clamp(36px, 5vw, 56px); padding-bottom: 96px; }
:where(.sg) .endcta { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; flex: 1 1 520px; padding: 16px 16px 16px 26px; border-radius: 22px; }
:where(.sg) .endline { font-family: var(--fd); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--bone); flex: 1 1 auto; }
:where(.sg) .endcta .btn { margin-left: auto; }

/* result: Save as PDF, and the document page it prints */
:where(.sg) .savebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid rgba(11, 31, 51, 0.2); background: var(--paper); color: var(--navy); font-family: var(--ft); font-size: 0.9375rem; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color 120ms linear, color 120ms linear; }
:where(.sg) .savebtn:hover { background: var(--navy); color: var(--bone); }
:where(.sg) .savebtn.onnavy { background: transparent; color: var(--bone); border-color: rgba(247, 246, 239, 0.4); }
:where(.sg) .savebtn.onnavy:hover { background: var(--bone); color: var(--navy); }
:where(.sg) .doctools { position: sticky; top: 0; z-index: 6; background: var(--amber1); border-bottom: 1px solid rgba(255, 176, 32, 0.6); }
:where(.sg) .doctoolsin { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
:where(.sg) .doctools .savebtn { background: var(--navy); color: var(--bone); border-color: var(--navy); }
:where(.sg) .docnote { font-size: 0.875rem; line-height: 1.45; color: var(--navy); max-width: 60ch; }
:where(.sg) .dochead { font-family: var(--fd); font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; padding-top: 18px; margin-bottom: 16px; border-top: 2px solid var(--navy); }
:where(.sg) .docq { font-family: var(--fd); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; margin: 4px 0 6px; }
:where(.sg) .printurl { display: none; font-weight: 600; margin: 0 0 14px; }
:where(.sg) .docmode .printurl { display: block; }
:where(.sg) .docmode .panel { animation: none; margin-bottom: 40px; }
:where(.sg) .docmode .panel:last-child { margin-bottom: 0; }
:where(.sg) .docmode .yeng, :where(.sg) .docmode .wstart, :where(.sg) .docmode .finding { padding-top: 36px; }
:where(.sg) .docmode .etile, :where(.sg) .docmode .tw, :where(.sg) .docmode .stamp, :where(.sg) .docmode .bsg i { animation: none; }
/* doc-light: the navy panels turn to paper, for reading on screen as a document and for printing */
:where(.sg) .docmode .room { background-color: var(--paper); background-image: none; color: var(--navy); }
:where(.sg) .docmode .room::after { display: none; }
:where(.sg) .docmode .rhero { border-bottom: 1px solid var(--line); }
:where(.sg) .docmode .rmh { color: var(--red7); }
:where(.sg) .docmode .rmf .label, :where(.sg) .docmode .bl, :where(.sg) .docmode .bnum .bof { color: var(--ink); }
:where(.sg) .docmode .rmf b, :where(.sg) .docmode .bname, :where(.sg) .docmode .bmean, :where(.sg) .docmode .ctah, :where(.sg) .docmode .ctap, :where(.sg) .docmode .bnum b { color: var(--navy); }
:where(.sg) .docmode .band { background: var(--bone); border-color: var(--line); }
:where(.sg) .docmode .bsg { background: var(--mist1); }
:where(.sg) .docmode .stamp { color: var(--red7); border-color: var(--red7); outline-color: var(--red7); }
:where(.sg) .docmode .ctacard { border: 1.5px solid var(--navy); box-shadow: none; }
:where(.sg) .docmode .ctacard .amberc { color: var(--red7); }
:where(.sg) .docmode .ticks { border-top-color: var(--mist); }
:where(.sg) .docmode .ticks li { color: var(--ink); }
:where(.sg) .docmode .ticks path { stroke: var(--navy); }
:where(.sg) .docmode .erow, :where(.sg) .docmode .sheet, :where(.sg) .docmode .ctacard { box-shadow: none; }
/* end doc-light */
@media (max-width: 1120px) {
  :where(.sg) .topbar { grid-template-columns: 130px minmax(0, 1fr) 150px; column-gap: 16px; }
  :where(.sg) .es { width: 22px; height: 22px; border-radius: 6px; }
  :where(.sg) .sgroup { gap: 3px; }
  :where(.sg) .strip { gap: 10px; }
}
@media (max-width: 900px) {
  :where(.sg) .introL, :where(.sg) .introR, :where(.sg) .wsL, :where(.sg) .wsR, :where(.sg) .wsgrid.solo .wsL, :where(.sg) .bside, :where(.sg) .bmain { grid-column: 1 / -1; }
  :where(.sg) .strip .sgroup { display: none; }
  :where(.sg) .strip .sgroup.cur { display: flex; }
  :where(.sg) .es { width: 24px; height: 24px; }
  :where(.sg) .bands { grid-template-columns: 1fr; }
  :where(.sg) .erow { padding: 16px; }
  :where(.sg) .etiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  :where(.sg) .phases { grid-template-columns: 1fr; }
  :where(.sg) .arow { grid-template-columns: 1fr; }
  :where(.sg) .alab { padding-top: 0; }
  :where(.sg) .thead, :where(.sg) .ghead { display: none; }
  :where(.sg) .mlab { display: block; }
  :where(.sg) .mrow, :where(.sg) .grow { grid-template-columns: 48px minmax(0, 1fr); row-gap: 10px; }
  :where(.sg) .ticon { width: 48px; height: 48px; border-radius: 14px; grid-row: 1 / span 5; }
  :where(.sg) .mdim, :where(.sg) .mtoday, :where(.sg) .minst, :where(.sg) .mgap, :where(.sg) .gdim, :where(.sg) .gtoday, :where(.sg) .gstat, :where(.sg) .gtext { grid-column: 2; }
  :where(.sg) .marrow { display: none; }
  :where(.sg) .brow { grid-template-columns: 1fr; gap: 6px; }
  :where(.sg) .bval { text-align: left; }
}
@media (max-width: 700px) {
  :where(.sg) .topbar { grid-template-columns: auto auto; justify-content: space-between; }
  :where(.sg) .strip { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  :where(.sg) .wm { height: 18px; }
  :where(.sg) .where { flex-wrap: nowrap; gap: 6px; }
  :where(.sg) .wtext { font-size: 0.8125rem; }
  :where(.sg) .togo { font-size: 0.6875rem; padding: 2px 7px; }
  :where(.sg) .opt { gap: 10px; padding: 10px 12px 10px 10px; font-size: 1rem; }
  :where(.sg) .okey { width: 28px; height: 28px; }
  :where(.sg) .dt { width: 7px; height: 7px; border-width: 1.25px; }
  :where(.sg) .dots { gap: 2px; }
  :where(.sg) .rbar { width: 72px; }
  :where(.sg) .stats { grid-template-columns: 1fr; }
  :where(.sg) .exbands { grid-template-columns: 1fr; }
  :where(.sg) .exhero, :where(.sg) .exbody { padding-left: 18px; padding-right: 18px; }
  :where(.sg) .stamp { margin-left: 0; }
  :where(.sg) .move { flex-wrap: wrap; row-gap: 6px; }
  :where(.sg) .mvtext { flex: 1 1 calc(100% - 44px); }
  :where(.sg) .mvimg + .mvtext { flex-basis: auto; }
  :where(.sg) .mvtag { margin-left: 44px; }
  :where(.sg) .endcta { padding: 18px; }
  :where(.sg) .endcta .btn { margin-left: 0; }
}
@media (max-width: 560px) {
  :where(.sg) .etiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  :where(.sg) .etile { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; text-align: left; }
  :where(.sg) .etbox { grid-row: 1 / span 2; width: 44px; border-radius: 12px; }
  :where(.sg) .etname { align-self: end; -webkit-hyphens: manual; hyphens: manual; }
  :where(.sg) .etstate { align-self: start; }
  :where(.sg) .etfirst { top: 4px; right: 4px; width: 7px; height: 7px; }
  :where(.sg) .exgrid { gap: 4px; }
}
@media (max-width: 480px) {
  :where(.sg) .bscore { grid-template-columns: 1fr; row-gap: 10px; }
  :where(.sg) .field { flex-basis: 100%; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #FFFFFF !important; }
  .sg { background: #FFFFFF !important; background-image: none !important; min-height: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  :where(.sg) .noprint, :where(.sg) .samplebar, :where(.sg) .doctools { display: none !important; }
  :where(.sg) .top { background: none; border-bottom: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :where(.sg) .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  :where(.sg) .printurl { display: block; }
  :where(.sg) .mrow, :where(.sg) .grow, :where(.sg) .item, :where(.sg) .move, :where(.sg) .etile, :where(.sg) .band, :where(.sg) .ctacard, :where(.sg) .firstbox, :where(.sg) .econbox, :where(.sg) .brow, :where(.sg) .bfig, :where(.sg) .byou, :where(.sg) .surveyitem, :where(.sg) .erow, :where(.sg) .capblock, :where(.sg) .arith, :where(.sg) .legrow { break-inside: avoid; }
  :where(.sg) .dochead, :where(.sg) .h3, :where(.sg) .wshead, :where(.sg) .wslab, :where(.sg) .bgroup, :where(.sg) .btitle, :where(.sg) .phname, :where(.sg) .fname, :where(.sg) .docq, :where(.sg) .sname, :where(.sg) .iname, :where(.sg) .mdim, :where(.sg) .gdim { break-after: avoid; }
  :where(.sg) h1, :where(.sg) h2, :where(.sg) h3, :where(.sg) .btitle, :where(.sg) .dochead, :where(.sg) .docq, :where(.sg) .bname, :where(.sg) .wshead, :where(.sg) .iname, :where(.sg) .fname, :where(.sg) .mt1, :where(.sg) .mi1 { break-inside: avoid; }
  :where(.sg) .sheet { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  :where(.sg) .erow { padding: 12px 14px; }
  :where(.sg) .bands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  :where(.sg) .band { padding: 16px 18px; }
  :where(.sg) .bname { font-size: 2rem; }
  :where(.sg) .wsL { grid-column: 1 / span 7; }
  :where(.sg) .wsR { grid-column: 8 / span 5; }
  :where(.sg) .bside { grid-column: 1 / span 4; }
  :where(.sg) .bmain { grid-column: 5 / span 8; }
  :where(.sg) .bcard { column-gap: 18px; padding: 18px 0; }
  :where(.sg) .brow { grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 52px; gap: 10px; margin: 7px 0; }
  :where(.sg) .bval { text-align: right; }
  :where(.sg) .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  :where(.sg) .phase { padding: 14px 12px 6px; }
  .sg *, .sg *::before, .sg *::after { animation: none !important; transition: none !important; }
  .sg .room { background-color: var(--paper); background-image: none; color: var(--navy); }
  .sg .room::after { display: none; }
  .sg .rhero { border-bottom: 1px solid var(--line); }
  .sg .rmh { color: var(--red7); }
  .sg .rmf .label, .sg .bl, .sg .bnum .bof { color: var(--ink); }
  .sg .rmf b, .sg .bname, .sg .bmean, .sg .ctah, .sg .ctap, .sg .bnum b { color: var(--navy); }
  .sg .band { background: var(--bone); border-color: var(--line); }
  .sg .bsg { background: var(--mist1); }
  .sg .stamp { color: var(--red7); border-color: var(--red7); outline-color: var(--red7); }
  .sg .ctacard { border: 1.5px solid var(--navy); box-shadow: none; }
  .sg .ctacard .amberc { color: var(--red7); }
  .sg .ctavat { color: var(--ink); }
  .sg .ticks { border-top-color: var(--mist); }
  .sg .ticks li { color: var(--ink); }
  .sg .ticks path { stroke: var(--navy); }
  .sg .erow, .sg .sheet, .sg .ctacard { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg *, .sg *::before, .sg *::after { animation: none !important; transition: none !important; }
}

/* The wordmark links home on the website. */
.sg .wmlink { display: block; justify-self: start; width: max-content; line-height: 0; border-radius: 4px; }
.sg .wmlink:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
