/* Spruce Street — page layout rules that sit on top of the board markup. Desktop is the board as drawn;
   everything here is the phone treatment: one column, smaller headings, and the sections that start closed. */
.dc-root { overflow-x: clip; }
.dc-root img, .dc-root svg { max-width: 100%; }
.ph-head { display: none; }
.ph-more { display: none; }
.ph-only { display: none; }

@media (max-width: 900px) {
  /* type on a phone, one scale (JMC, 12 Nov 01:36 ET): 30 page heading, 23 section heading, 19 sub-heading, 16.5 card title,
     15.5 body, 14.5 card text, 13.5 small, 13 notes and caps labels */
  .dc-root { font-size: 15.5px !important; line-height: 1.55 !important; }
  .dc-root h1 { font-size: 36px !important; line-height: 1.1 !important; }
  .dc-root h2, .dc-root [style*="font-size: 34px"], .dc-root [style*="font-size: 40px"] { font-size: 28px !important; line-height: 1.15 !important; }
  .dc-root h3, .dc-root [style*="font-size: 24px"] { font-size: 19px !important; line-height: 1.25 !important; }
  .dc-root [style*="font-size: 18px"] { font-size: 16.5px !important; }
  .dc-root [style*="font-size: 17px"] { font-size: 16px !important; }
  .dc-root [style*="font-size: 16px"] { font-size: 15.5px !important; }
  .dc-root [style*="font-size: 15px"] { font-size: 14.5px !important; }
  .dc-root [style*="font-size: 14px"] { font-size: 13.5px !important; }
  .dc-root [style*="monospace; font-size: 14px"], .dc-root p[style*="text-transform: uppercase"] { font-size: 13px !important; letter-spacing: 0.06em !important; }
  .dc-root > section > div { padding-left: 16px !important; padding-right: 16px !important; gap: 20px !important; }
  .dc-root > section > div[style*="padding: 9"], .dc-root > section > div[style*="padding: 8"], .dc-root > section > div[style*="padding: 7"], .dc-root > section > div[style*="padding: 6"] { padding-top: 36px !important; padding-bottom: 36px !important; }
  /* Compute (JMC, 12 Nov 16:50 ET): the workload bar scrolls with the page on a phone; "Working with us" shows titles and opens on a tap */
  body[data-page="compute"] .wl-bar { position: static !important; padding: 12px 14px !important; box-shadow: none !important; }
  body[data-page="compute"] .wl-hint { margin-left: 0 !important; flex-basis: 100%; font-size: 13px !important; }
  /* the three profiles on a phone: three short boxes under the heading; the long cards stay on the desktop (JMC, 12 Nov 18:28 ET) */
  body[data-page="compute"] .gp-cards { display: none !important; }
  body[data-page="compute"] .gp-mini { display: grid !important; }
  body[data-page="compute"] .gp-defs { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  body[data-page="compute"] .gp-defs > div { padding: 13px 14px 13px 17px !important; gap: 6px !important; }
  body[data-page="compute"] .gp-defs [style*="font-size: 17px"] { font-size: 16px !important; }
  body[data-page="compute"] .tap-open { position: relative; cursor: pointer; padding: 14px 44px 14px 14px !important; grid-template-columns: 36px minmax(0, 1fr) !important; column-gap: 12px !important; align-items: center !important; }
  body[data-page="compute"] .tap-open > span:first-child { width: 36px !important; height: 36px !important; border-radius: 9px !important; }
  body[data-page="compute"] .tap-open > span:first-child svg { width: 19px; height: 19px; }
  body[data-page="compute"] .tap-open > strong { font-size: 16px !important; }
  body[data-page="compute"] .tap-open > :nth-child(3) { display: none !important; }
  body[data-page="compute"] .tap-open[data-open] > :nth-child(3) { display: block !important; margin-top: 6px; }
  body[data-page="compute"] .tap-open::after { content: "+"; position: absolute; right: 12px; top: 16px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #2FA396; color: #12324F; display: flex; align-items: center; justify-content: center; font: 500 17px/1 'Geist Mono', ui-monospace, monospace; transition: transform .2s; }
  body[data-page="compute"] .tap-open[data-open]::after { transform: rotate(45deg); }
  body[data-page="compute"] .ob-arrow { display: none !important; }
  /* links that go to another page: the teal-outlined pill (JMC, 12 Nov 13:42 ET) */
  .dc-root .go, .dc-root .ask { font-size: 14.5px; min-height: 40px; }
  .dc-root .go.sm { font-size: 13.5px; min-height: 36px; }
  .dc-root .go, .dc-root .ask { white-space: normal; }
  /* Home, the three practice cards: label, question, then the pill */
  body[data-page="home"] .prac-head { display: contents !important; }
  body[data-page="home"] .prac-head > a { order: 3; margin-top: 2px; }
  body:not([data-page="data"]) .ph-hide { display: none !important; }
  .ph-only { display: block !important; }
  .dc-root svg { height: auto; }

  /* grids: one column unless the cells are small enough for two */
  .dc-root [style*="grid-template-columns: repeat(2,"], .dc-root [style*="grid-template-columns: repeat(3,"],
  .dc-root [style*="grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)"], .dc-root [style*="grid-template-columns: minmax(0, 1.9fr)"],
  .dc-root [style*="grid-template-columns: 1fr 2fr 2fr"], .dc-root [style*="grid-template-columns: 148px"],
  .dc-root [style*="grid-template-columns: 280px"], .dc-root [style*="grid-template-columns: 270px"], .dc-root [style*="grid-template-columns: 210px"],
  .dc-root [style*="grid-template-columns: 230px"] { grid-template-columns: minmax(0, 1fr) !important; }
  .dc-root [style*="grid-template-columns: repeat(4,"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dc-root [style*="grid-template-columns: 150px"] { grid-template-columns: 104px minmax(0, 1fr) !important; }
  .dc-root [style*="grid-template-columns: 200px"] { grid-template-columns: minmax(0, 1fr) 56px !important; }
  .dc-root [style*="grid-template-columns: 200px"] > :first-child { grid-column: 1 / -1; }
  /* the "when to engage" matrix: the moment on its own line, the three kinds of capacity beneath it */
  .dc-root [style*="grid-template-columns: 290px"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .dc-root [style*="grid-template-columns: 290px"] > :first-child { grid-column: 1 / -1; }

  /* chains of five cards run down the page; the five-step bar on Home keeps its row and shows only the current step's name */
  .dc-root [style*="grid-template-columns: repeat(5,"]:not([role="group"]) { grid-template-columns: minmax(0, 1fr) !important; }
  /* the free compute review: the six-bar gap chart keeps its six columns; the four "what you receive" cards stack */
  body[data-page="review"] .dc-root [style*="grid-template-columns: repeat(6,"] { gap: 4px !important; }
  body[data-page="review"] .dc-root [style*="grid-template-columns: repeat(6,"] > * { font-size: 11.5px !important; line-height: 1.25 !important; letter-spacing: -0.01em; }
  body[data-page="review"] .dc-root [style*="grid-template-columns: repeat(4,"] { grid-template-columns: minmax(0, 1fr) !important; }
  .dc-root .pw-node[aria-pressed="false"] > span:last-child { display: none !important; }
  .dc-root .pw-node > span:last-child { white-space: nowrap; }
  .dc-root .pw-node:last-child > span:last-child { align-self: flex-end; }
  .dc-root [role="group"][aria-label="Stages of the work"] + div[aria-hidden="true"] { display: none !important; }
  /* Compute: benefit cards and the onboarding panel stack */
  body[data-page="compute"] #value [style*="grid-template-columns: repeat(4,"] { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-page="compute"] #value [style*="flex: 1.25 1 560px"] > div[style*="display: flex"] { flex-direction: column !important; align-items: stretch !important; }
  body[data-page="compute"] #value [style*="flex: 1.25 1 0"], body[data-page="compute"] #value [style*="flex: 1 1 0"] { flex: 0 0 auto !important; }

  /* rows drawn side by side wrap; wide flex children take the full width */
  .dc-root [style*="flex: 1 1 3"], .dc-root [style*="flex: 1 1 4"], .dc-root [style*="flex: 1 1 5"], .dc-root [style*="flex: 1 1 6"],
  .dc-root [style*="flex: 2 1 "], .dc-root [style*="flex: 0 1 3"] { flex-basis: 100% !important; max-width: 100% !important; }

  /* sections that start closed: a tap bar, then the section as drawn */
  [data-phone="closed"] > .ph-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid var(--line-2); padding: 18px 16px; font: inherit; color: var(--navy); cursor: pointer; }
  [data-phone="closed"] > .ph-head { padding: 14px 16px; }
  [data-phone="closed"] > .ph-head::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #2FA396; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 18px; line-height: 1; color: #12324F; }
  [data-phone="closed"] > .ph-head .ph-t { grid-column: 1; font-family: var(--head); font-weight: 600; font-size: 16.5px; line-height: 1.3; color: #12324F; }
  [data-phone="closed"] > .ph-head .ph-d { grid-column: 1; font-size: 13.5px; line-height: 1.45; color: var(--body-2); }
  [data-phone="closed"] > .ph-head .ph-x { display: none; }
  [data-phone="closed"]:not([data-rt-open]) > :not(.ph-head) { display: none !important; }
  [data-phone="closed"]:not([data-rt-open]) { background: #fff !important; border-top: 0 !important; }
  [data-phone="closed"][data-rt-open] > .ph-head { grid-template-columns: minmax(0, 1fr); padding: 10px 16px; border-bottom: 1px solid var(--line); }
  [data-phone="closed"][data-rt-open] > .ph-head::after { content: none; }
  [data-phone="closed"][data-rt-open] > .ph-head .ph-t, [data-phone="closed"][data-rt-open] > .ph-head .ph-d { display: none; }
  [data-phone="closed"][data-rt-open] > .ph-head .ph-x { display: block; text-align: right; font-size: 15px; font-weight: 600; color: var(--blue); }
  div[data-phone="closed"] > .ph-head { padding-left: 0; padding-right: 0; }
  /* a closed section that must not be missed (Compute treasury on Home): a navy card, not a white bar (JMC, 12 Nov 12:54 ET) */
  [data-phone="closed"]:not([data-rt-open]) > .ph-head.ph-feature { width: auto; margin: 22px 16px; padding: 18px 18px 18px 20px; border: 0; border-radius: 14px; background: #12324F; box-shadow: inset 4px 0 0 #2FA396, 0 12px 26px rgba(18, 50, 79, 0.20); }
  [data-phone="closed"]:not([data-rt-open]) > .ph-head.ph-feature .ph-t { color: #fff; font-size: 18px; }
  [data-phone="closed"]:not([data-rt-open]) > .ph-head.ph-feature .ph-d { color: #D5E0EC; margin-top: 2px; }
  [data-phone="closed"]:not([data-rt-open]) > .ph-head.ph-feature::after { border-color: #5BBFB3; color: #fff; }

  /* "show the rest": a list keeps its first rows and a button opens the others */
  .ph-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 12px; border: 1.5px solid #2FA396; border-radius: 999px; background: #fff; color: #12324F; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
  [data-ph-keep="3"]:not([data-rt-open]) > :nth-child(n+4), [data-ph-keep="4"]:not([data-rt-open]) > :nth-child(n+5) { display: none !important; }

  /* Home */
  body[data-page="home"] .dc-root > section:first-child { display: flex; flex-direction: column; }
  body[data-page="home"] .dc-root > section:first-child > div { width: 100%; box-sizing: border-box; }
  body[data-page="home"] .dc-root > section:first-child > div:first-of-type { padding-top: 26px !important; padding-bottom: 28px !important; gap: 16px !important; }
  /* the capacity field sits under the header as a band, not below the buttons */
  body[data-page="home"] .dc-root > section:first-child > div[aria-hidden="true"] { order: -1; display: flex !important; align-items: flex-end; justify-content: center; height: 72px; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  body[data-page="home"] #tool > div { padding: 24px 16px 28px !important; }
  body[data-page="home"] #tool > div > div { padding: 18px 16px 20px !important; }
  body[data-page="home"] .pl { padding: 12px 14px 10px !important; }
  body[data-page="home"] .pl-go { font-size: 13.5px !important; padding-top: 2px !important; }
  /* Who we work with: icon and name only, two to a row (JMC, 12 Nov 01:36 ET) */
  body[data-page="home"] .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body[data-page="home"] .who { padding: 12px 12px 12px !important; gap: 4px !important; border-radius: 12px; }
  body[data-page="home"] .who > span:first-child { gap: 10px !important; }
  body[data-page="home"] .who > span:first-child > span:nth-child(2) { font-size: 14.5px !important; line-height: 1.22 !important; }
  body[data-page="home"] .who-ic { width: 34px; height: 34px; border-radius: 9px; }
  body[data-page="home"] .who-ic svg { width: 18px; height: 18px; }
  body[data-page="home"] .who-line, body[data-page="home"] .who-go { display: none !important; }
  body[data-page="home"] .who-ask { grid-column: 1 / -1; padding: 14px !important; }
  /* How we work: three starting points, each with what we do on an indented line; the four-box track and its key are desktop only */
  body[data-page="home"] #how ol, body[data-page="home"] #how ol + div { display: none !important; }
  body[data-page="home"] .way { padding: 13px 14px !important; gap: 5px !important; }
  body[data-page="home"] .way-t { font-size: 16px !important; }
  body[data-page="home"] .way-s { font-size: 14px !important; padding-left: 4px !important; }
  body[data-page="home"] .way-d { padding: 14px 16px 16px !important; gap: 0 !important; }
  body[data-page="home"] .way-d > p { font-size: 14.5px !important; }
  /* The path: the chart takes the card's full width; the notes under it are small */
  body[data-page="home"] .pw-chart { padding: 14px 4px 12px !important; gap: 8px !important; }
  body[data-page="home"] .pw-chart > :not(svg) { padding: 0 10px; }
  body[data-page="home"] .pw-chart > div { gap: 4px 14px !important; }
  body[data-page="home"] .pw-text { padding: 16px 16px 18px !important; min-height: 0 !important; gap: 8px !important; }
  /* When to engage: company types in two even columns; each moment on its own line with its kinds of capacity beneath */
  body[data-page="home"] .cm-types { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  body[data-page="home"] .cm-types > span { grid-column: 1 / -1; margin: 0 !important; }
  body[data-page="home"] .cm-types > button { height: auto !important; min-height: 42px; padding: 6px 10px !important; font-size: 13.5px !important; line-height: 1.2; white-space: normal; }
  /* one selector replaces the eight chips (JMC, 12 Nov 16:50 ET); the page script picks "Agentic platforms" first */
  body[data-page="home"] .cm-types { display: none !important; }
  body[data-page="home"] .cm-pick { display: flex !important; flex-direction: column; gap: 8px; }
  body[data-page="home"] .cm-pick-l { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.07em; color: #12324F; }
  body[data-page="home"] .cm-pick-l > span:last-child { font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #526071; }
  body[data-page="home"] .cm-sel { -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: 12px 46px 12px 16px; border: 1.5px solid #12324F; border-radius: 10px; font: 600 16.5px/1.3 Geist, Inter, system-ui, sans-serif; color: #12324F; box-shadow: inset 4px 0 0 #2FA396, 0 6px 16px rgba(18, 50, 79, 0.08);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2312324F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
  body[data-page="home"] .ask-acts { gap: 12px !important; }
  /* AI labs leads; "Any company" closes the grid, bottom right (JMC, 12 Nov 12:54 ET) */
  body[data-page="home"] .cm-types > :nth-child(3) { order: 1; } body[data-page="home"] .cm-types > :nth-child(5) { order: 2; }
  body[data-page="home"] .cm-types > :nth-child(6) { order: 3; } body[data-page="home"] .cm-types > :nth-child(7) { order: 4; }
  body[data-page="home"] .cm-types > :nth-child(9) { order: 5; } body[data-page="home"] .cm-types > :nth-child(4) { order: 6; }
  body[data-page="home"] .cm-types > :nth-child(8) { order: 7; } body[data-page="home"] .cm-types > :nth-child(2) { order: 8; }
  body[data-page="home"] .cm-card { padding: 2px 12px 6px !important; }
  body[data-page="home"] .cm-shade { display: none !important; }
  body[data-page="home"] .cm-head { padding: 12px 0 10px !important; }
  body[data-page="home"] .cm-head > span:not(:first-child) { display: none !important; }
  body[data-page="home"] .cm-row { min-height: 0 !important; padding: 11px 0 12px; row-gap: 9px; }
  body[data-page="home"] .cm-row > :first-child { padding-right: 0 !important; }
  body[data-page="home"] .cm-row > :not(:first-child) { height: 28px !important; margin: 0 3px !important; font-size: 12.5px !important; white-space: nowrap; }
  body[data-page="home"] #data > div { padding-top: 36px !important; padding-bottom: 36px !important; }
  /* compute treasury: the chart plays by itself; the selectors, the book list and the play button are desktop only */
  body[data-page="home"] .tr-ctl, body[data-page="home"] .tr-book { display: none !important; }
  body[data-page="home"] .tr-moves [style*="font-size: 15px"] { display: none !important; }
  body[data-page="home"] .tr-moves > div { gap: 8px !important; }
  /* Data intelligence page: the chart is cut to its plot so it fills the width; the year labels sit clear of the axis */
  body[data-page="data"] .di-card { padding: 16px 10px 14px !important; }
  body[data-page="data"] .sup-wrap { overflow: hidden; }
  body[data-page="data"] .sup-wrap > svg { width: 121.4% !important; max-width: none !important; margin-left: -3.3%; }
  body[data-page="data"] .sup-wrap .ph-k { transform: translateY(13px); }
  body[data-page="data"] .sup-wrap .ph-legend { margin-top: 2px; }
  body[data-page="data"] .di-card > div:first-child > span.ph-hide { display: none !important; }
  body[data-page="data"] .sg-more { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-page="data"] .di-risk { padding: 16px !important; }
  body[data-page="data"] .di-risk-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  body[data-page="data"] .dc-root [style*="grid-template-columns: 150px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
  /* Compute */
  body[data-page="compute"] .gp { padding: 20px 16px 22px !important; gap: 16px !important; }
  body[data-page="compute"] .onpage > div { padding: 0 16px !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px !important; font-size: 12px !important; letter-spacing: 0 !important; }
  body[data-page="compute"] .onpage a { padding: 9px 0 !important; white-space: nowrap; }
  body[data-page="compute"] #plan [role="group"] > button > span:first-child > span:last-child { width: 60px !important; }
  /* the three forms: compact rows, the icon beside the words; the left-to-right bar under them means nothing in one column */
  body[data-page="compute"] .fm { display: grid !important; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 12px !important; padding: 11px 12px !important; transform: none !important; align-items: center; }
  body[data-page="compute"] .fm > span:first-child { grid-row: 1 / span 2; width: 46px !important; height: 46px !important; border-radius: 11px !important; }
  body[data-page="compute"] .fm > span:first-child svg { width: 32px; height: 32px; }
  body[data-page="compute"] .fm-seg, body[data-page="compute"] .fm-ends { display: none !important; }
  /* "how it is sold" on a phone: one column of tiles; a tile shows its first line and opens on a tap; the chart sits under them (JMC, 12 Nov 18:28 ET) */
  body[data-page="compute"] .sold-panel { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-page="compute"] .sold { padding: 14px !important; gap: 10px !important; }
  body[data-page="compute"] .sold-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  body[data-page="compute"] .sold-tile { padding: 11px 12px 12px !important; gap: 7px !important; }
  body[data-page="compute"] .sold-head { cursor: pointer !important; min-height: 38px; }
  body[data-page="compute"] .sold-head > span:first-child { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  body[data-page="compute"] .sold-head > strong { font-size: 16.5px !important; }
  body[data-page="compute"] .sold-chev { display: block !important; transition: transform .2s; }
  body[data-page="compute"] .sold-tile[data-open="true"] .sold-chev { transform: rotate(180deg); }
  body[data-page="compute"] .sold-tile:not([data-open="true"]) .sold-more { display: none !important; }
  body[data-page="compute"] .sold-tile > span { padding-left: 2px; }
  body[data-page="compute"] .dm { border-left: 0 !important; border-top: 1px solid #E2E8F0; padding: 16px 14px !important; }
  body[data-page="compute"] .sold-foot { margin: 6px -14px -16px !important; grid-template-columns: minmax(0, 1fr) !important; border-radius: 0 !important; }
  body[data-page="compute"] .sold-foot > div { padding: 10px 14px !important; border-left: 0 !important; }
  body[data-page="compute"] .sold-foot > div + div { border-top: 1px solid #E2E8F0; }
  /* the hardware block on a phone: the deciding points stack; the three tabs stack and keep their chip names; the drawing, then what we specify; the long description stays on the desktop */
  body[data-page="compute"] .hw-why { flex-direction: column; align-items: flex-start !important; padding: 12px !important; gap: 10px !important; }
  body[data-page="compute"] .hw-why [style*="font-size: 15px"] { font-size: 14px !important; }
  body[data-page="compute"] .hw-arrow { display: none; }
  body[data-page="compute"] .hw-not { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
  body[data-page="compute"] .hw-tabs { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  body[data-page="compute"] .hw-tab { padding: 10px 12px 11px !important; gap: 8px !important; }
  body[data-page="compute"] .hw-tab > span:first-child > span:first-child { width: 36px !important; height: 36px !important; border-radius: 9px !important; }
  body[data-page="compute"] .hw-tab > span:first-child > span:first-child svg { width: 25px; height: 25px; }
  body[data-page="compute"] .hw-tab > span:first-child > span:last-child { font-size: 17px !important; }
  body[data-page="compute"] .hw-names [style*="min-width: 84px"] { min-width: 0 !important; flex-basis: 100%; }
  body[data-page="compute"] .hw-panel { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-page="compute"] .hw-draw { border-right: 0 !important; border-bottom: 1px solid #E2E8F0; padding: 8px 10px !important; }
  body[data-page="compute"] .hw-det { padding: 14px !important; gap: 12px !important; }
  body[data-page="compute"] .hw-specs { grid-template-columns: minmax(0, 1fr) !important; gap: 7px !important; }
  body[data-page="compute"] .hw-specs > span { font-size: 14.5px !important; }
  body[data-page="compute"] .hw-text { display: none; }
  /* "Around every agent task" on a phone: three names that open on a tap, and the two reasons; the lead sentence and the note stay on the desktop (JMC, 12 Nov 19:11 ET) */
  body[data-page="compute"] .ag-cards { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  body[data-page="compute"] .ag-lead, body[data-page="compute"] .ag-note { display: none !important; }
  body[data-page="compute"] .ag-why { padding: 12px !important; gap: 8px !important; }
  body[data-page="compute"] .ag-why [style*="font-size: 15px"] { font-size: 14px !important; }
  body[data-page="compute"] .hw, body[data-page="compute"] .ag { padding: 0 14px 16px !important; }
  body[data-page="compute"] .hw[data-rt-open], body[data-page="compute"] .ag[data-rt-open] { padding-top: 4px !important; }
  /* the free compute review: what you receive is four chips, two to a row; what it takes is three points; no expanding on a phone */
  body[data-page="review"] details.xpr > summary { pointer-events: none; }
  body[data-page="review"] .xpr-c, body[data-page="review"] .rv-card .xp-l, body[data-page="review"] .rv-step .xp-l { display: none !important; }
  body[data-page="review"] .dc-root .rv-get { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body[data-page="review"] .rv-card { padding: 10px 12px !important; border-radius: 999px !important; box-shadow: none !important; border-color: #2FA396 !important; text-align: center; }
  body[data-page="review"] .rv-card strong { font-size: 14.5px !important; }
  body[data-page="review"] .dc-root .rv-take { gap: 8px !important; }
  body[data-page="review"] .rv-step { border-top: 0 !important; padding: 0 0 0 4px !important; flex-direction: row !important; gap: 12px !important; align-items: flex-start !important; }
  body[data-page="review"] .rv-step > span:first-child { font-size: 0 !important; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: #2FA396; }
  body[data-page="review"] .rv-step strong { font-size: 15.5px !important; font-weight: 500 !important; color: #1A1A2E !important; }
  body[data-page="review"] .rv-pts { font-size: 15.5px; }
  /* Strategic finance, rebuilt for a phone (JMC, 12 Nov 01:36 ET). The chain is one card of five short rows, read downward */
  body[data-page="sf"] .sf-chain { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; margin-top: 4px !important; border: 1px solid #DCE5EF; border-radius: 12px; background: #fff; overflow: hidden; }
  body[data-page="sf"] .sf-chain > li { display: block !important; position: relative; }
  body[data-page="sf"] .sf-chain > li + li { border-top: 1px solid #E2E8F0; }
  /* the arrow from one step to the next sits inside the row, under its label, clear of the row's border (JMC, 12 Nov 12:54 ET) */
  body[data-page="sf"] .sf-chain > li:not(:last-child) .sf-k::after { content: ""; display: block; width: 7px; height: 7px; margin: 9px 0 0 3px; border-right: 1.8px solid #2FA396; border-bottom: 1.8px solid #2FA396; transform: rotate(45deg); }
  body[data-page="sf"] .sf-step { display: grid !important; grid-template-columns: 92px minmax(0, 1fr); gap: 1px 12px !important; min-height: 0 !important; padding: 12px 14px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; background: transparent !important; }
  body[data-page="sf"] .sf-chain > li:nth-child(4) .sf-step { background: #EAF2FB !important; }
  body[data-page="sf"] .sf-chain > li:nth-child(5) .sf-step { background: #F5F7FA !important; box-shadow: inset 3px 0 0 #2FA396 !important; }
  body[data-page="sf"] .sf-k { grid-row: 1 / span 2; align-self: start; padding-top: 3px; font-size: 12px !important; letter-spacing: 0.05em !important; line-height: 1.3; }
  body[data-page="sf"] .sf-n { font-size: 15.5px !important; }
  body[data-page="sf"] .sf-l { margin-top: 0 !important; font-size: 13.5px !important; }
  body[data-page="sf"] .sf-arrow { display: none !important; }
  /* the margin waterfall keeps its four bars side by side, drawn shorter */
  body[data-page="sf"] .gm-chart { padding: 16px 12px 14px !important; gap: 8px !important; }
  body[data-page="sf"] .gm-bars { --gmh: 1.7px; height: 204px !important; gap: 0 10px !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body[data-page="sf"] .gm-bars > div > span:first-child { font-size: 11.5px !important; margin-bottom: 4px !important; }
  body[data-page="sf"] .gm-bars > div > span:last-child { width: 10px !important; }
  body[data-page="sf"] .gm-names { gap: 0 10px !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body[data-page="sf"] .gm-names > span { font-size: 12px !important; line-height: 1.25 !important; overflow-wrap: anywhere; }
  body[data-page="sf"] .gm-text { padding: 16px !important; gap: 8px !important; }
  body[data-page="sf"] [style*="flex: 1.5 1 540px"] > div:first-child { flex-direction: column !important; align-items: stretch !important; }
  /* rows of four small cards (what your CFO receives; evaluate, configure, operate, report) run down the page, icon beside the words */
  body[data-page="sf"] .dc-root [style*="grid-template-columns: repeat(4,"]:not(.gm-bars):not(.gm-names):not(.cfo-grid) { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  /* what your CFO receives: two cards to a row, the icon beside the title (JMC, 12 Nov 12:54 ET) */
  body[data-page="sf"] .cfo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body[data-page="sf"] .cfo-grid > div { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 10px !important; align-items: center; padding: 12px !important; border-radius: 10px !important; }
  body[data-page="sf"] .cfo-grid > div > span:first-child { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
  body[data-page="sf"] .cfo-grid > div > span:first-child svg { width: 17px; height: 17px; }
  body[data-page="sf"] .cfo-grid > div > strong { font-size: 14.5px !important; line-height: 1.2 !important; }
  body[data-page="sf"] .cfo-grid > div > span:last-child { grid-column: 1 / -1; font-size: 13px !important; line-height: 1.4 !important; }
  body[data-page="sf"] [style*="border-radius: 14px; padding: 28px"] { padding: 16px 14px !important; gap: 12px !important; }
  /* What changes when we step in: one card for each change; "Now" above, "With us" beneath */
  body[data-page="sf"] .sf-chg-head { display: none !important; }
  body[data-page="sf"] .sf-chgs { gap: 10px; }
  body[data-page="sf"] .sf-chg { display: block !important; border: 1px solid #DCE5EF; border-radius: 12px; overflow: hidden; background: #fff; transform: none !important; }
  body[data-page="sf"] .sf-chg > div:first-child { padding: 12px 14px 10px !important; border-top: 0 !important; }
  body[data-page="sf"] .sf-chg > div:first-child > span:first-child { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  body[data-page="sf"] .sf-chg > div:first-child > span:first-child svg { width: 18px; height: 18px; }
  body[data-page="sf"] .sf-chg > span:nth-child(2) { display: block !important; padding: 9px 14px 10px !important; font-size: 14px !important; border-top: 1px solid #E2E8F0 !important; }
  body[data-page="sf"] .sf-chg > span:nth-child(3) { display: none !important; }
  body[data-page="sf"] .sf-chg > span:nth-child(4) { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 10px !important; align-items: start !important; padding: 9px 14px 12px !important; font-size: 14.5px !important; box-shadow: inset 3px 0 0 #2FA396 !important; border-top: 1px solid #E2E8F0; }
  body[data-page="sf"] .sf-chg > span:nth-child(4) > span:first-child { width: 20px !important; height: 20px !important; margin-top: 1px; }
  body[data-page="sf"] .sf-chg > span:nth-child(2)::before, body[data-page="sf"] .sf-chg > span:nth-child(4)::before { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 2px; }
  body[data-page="sf"] .sf-chg > span:nth-child(2)::before { content: "NOW"; color: #526071; }
  body[data-page="sf"] .sf-chg > span:nth-child(4)::before { content: "WITH US"; color: #1E7A70; grid-column: 1 / -1; }
  [data-ph-keep="3"]:not([data-rt-open]) > .sf-chg-head ~ :nth-child(n+4) { display: none !important; }
  /* Strategic finance: the column headings of the key-areas table mean nothing in one column */
  body[data-page="sf"] [data-ph-keep="4"] > :first-child { display: none !important; }
}

/* charts on a phone: notes inside the chart are hidden and said in the legend under it; axis labels are kept at a readable size */
.ph-legend { display: none; }
@media (max-width: 640px) {
  .ph-chart .ph-x { display: none; }
  .ph-chart.ph-big .ph-k { font-size: var(--phfs) !important; }
  .ph-legend { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--slate); }
  .ph-legend .k { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 6px 0 0; vertical-align: 0; background: var(--blue-pale); }
  .ph-legend .ki { display: inline-block; white-space: nowrap; margin-right: 12px; }
  .ph-legend .k.hatch { background: repeating-linear-gradient(135deg, #2E75B6 0 2px, #EAF2FB 2px 5px); border: 1px solid #8DB6E0; }
  .ph-legend .k.hatch.gray { background: repeating-linear-gradient(135deg, #7C8DA1 0 2px, #FFFFFF 2px 5px); border-color: #7C8DA1; }
  .ph-legend .k.hatch.navy { background: repeating-linear-gradient(135deg, #12324F 0 2px, #FFFFFF 2px 5px); border-color: #7C8DA1; }
  .ph-legend .k.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #12324F; }
  .ph-legend .k.tri { width: 0; height: 0; background: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid #12324F; border-radius: 0; }
  .ph-legend .k.band { background: #F2F6FB; border: 1px solid #C3D7EC; }
  .ph-legend .k.vline { width: 3px; height: 13px; border-radius: 0; background: #12324F; vertical-align: -2px; margin-left: 4px; }
  .ph-legend .k.vdash { width: 3px; height: 13px; border-radius: 0; background: repeating-linear-gradient(180deg, #2FA396 0 4px, transparent 4px 7px); vertical-align: -2px; margin-left: 4px; }
}

/* the header now stays at the top of the window, so the Compute page's workload bar holds just under it on a desktop (12 Nov 18:28 ET) */
@media (min-width: 901px) { body[data-page="compute"] .wl-bar { top: 88px !important; } }
