/* Offwidth public site. Spec: brand/site-design.md. Element inventory: brand/ELEMENTS.md.
 *
 * The page is a stack of full-width sections. Content is plain markdown; the build gives the few
 * shapes that matter (hero, actions, product scene, illustration, points, steps) a class, and this
 * file does the rest. No JavaScript.
 */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --chalk: #F7F5F0;
  --paper: #FFFFFF;
  --sand: #EEEAE0;
  --ink: #15201B;
  --body: #3C4640;
  --muted: #667069;
  --line: #DEDACF;
  --green: #1F7A54;
  --green-strong: #17603F;
  --green-tint: #E3EFE8;
  --forest: #10261D;
  --on-forest: #EAF1EC;
  --on-forest-muted: #A8BCB0;
  --line-on-forest: #274135;
  --rope: #D9591F;

  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;

  --content: 1160px;
  --pad: 32px;
  --section: 104px;
  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 1px 2px rgba(21, 32, 27, 0.05), 0 12px 32px -12px rgba(21, 32, 27, 0.18);
  --gutter: max(var(--pad), calc((100% - var(--content)) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-color: #B9B4A6 var(--chalk); }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--body);
  font: 400 17px/1.6 var(--sans);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: #fff; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-small); }
.skip:focus { left: 12px; top: 12px; z-index: 20; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-strong); color: #fff; }
.btn-quiet { border-color: #BDB8AA; color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* --- chrome --------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
}
.site-head-in {
  display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 14px var(--pad);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 20px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark-mark { width: 24px; height: 24px; fill: var(--green); flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a, .nav-top {
  padding: 8px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: var(--body); text-decoration: none; font: 500 15.5px/1.6 var(--sans); white-space: nowrap;
}
.site-nav > a:hover, .nav-top:hover, .nav-group:hover > .nav-top, .nav-group:focus-within > .nav-top,
.site-nav > a[aria-current], .nav-group[data-current] > .nav-top { color: var(--ink); background: var(--sand); }
.nav-top::after {
  content: ''; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.5em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.22em) rotate(45deg);
}
.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: 100%; left: 0; z-index: 12; min-width: 230px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; margin-top: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
/* The gap between the button and the menu stays hoverable. */
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-group:hover > .nav-menu, .nav-group:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { border-radius: var(--radius-small); padding: 9px 12px; }
.nav-menu a:hover, .nav-menu a[aria-current] { color: var(--ink); background: var(--sand); }

/* Small screens: one Menu button that opens the whole list. */
.site-menu { display: none; }
.site-menu summary {
  list-style: none; cursor: pointer; padding: 7px 16px; border: 1px solid #BDB8AA; border-radius: 999px;
  font: 600 15px/1.6 var(--sans); color: var(--ink);
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary { background: var(--sand); }
.site-menu nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 12;
  display: flex; flex-direction: column; padding: 8px var(--pad) 24px;
  background: var(--chalk); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.site-menu nav a { padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; border-top: 1px solid var(--line); }
.site-menu nav a[aria-current] { color: var(--green-strong); }
.menu-title { margin: 22px 0 8px; color: var(--muted); font-size: 14px; }
.menu-title:first-child { margin-top: 10px; }
.menu-title + a { border-top: 0; }

.site-foot { background: var(--forest); color: var(--on-forest-muted); }
.site-foot-in {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 56px;
  max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 64px var(--pad) 72px;
}
.site-foot .wordmark { color: #fff; }
.site-foot .wordmark-mark { fill: #6FC59B; }
.foot-brand p { margin: 14px 0 0; font-size: 15.5px; max-width: 30ch; }
.site-foot a { color: var(--on-forest); }
.site-foot a:hover { color: #fff; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-group { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-title { margin: 0 0 4px; color: var(--on-forest-muted); font-size: 14px; }
.foot-group a { text-decoration: none; font-size: 15.5px; }
.foot-group a:hover { text-decoration: underline; }

/* --- page layout ---------------------------------------------------------- */

.page .prose > .hero,
.page .prose > section { padding: var(--section) var(--gutter); }

.page .hero { padding-top: 88px; padding-bottom: 96px; }
.hero h1 {
  margin: 0; max-width: 17ch;
  font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.hero .lede {
  margin: 26px 0 0; max-width: 54ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--body);
}
.hero p:not(.lede):not(.actions):not(.turn) { margin: 18px 0 0; max-width: 60ch; }

/* Sections: heading in a left column, content in a wider right one. */
.page .prose > section { border-top: 1px solid var(--line); }
.page .prose > section:not(.split):not(.wide):not(.steps) {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 72px;
}
.page .prose > section:not(.split):not(.wide):not(.steps) > h2 { grid-column: 1; grid-row: 1 / span 40; }
.page .prose > section:not(.split):not(.wide):not(.steps) > :not(h2) { grid-column: 2; }

.page .prose h2 {
  margin: 0 0 24px; max-width: 20ch;
  font-weight: 600; font-size: clamp(1.75rem, 3.1vw, 2.5rem); line-height: 1.08; letter-spacing: -0.028em;
  color: var(--ink); text-wrap: balance;
}
.page .prose h3 { margin: 36px 0 10px; font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); }
.page .prose section p { margin: 0 0 18px; max-width: 64ch; }
.page .prose section > p:last-child, .sec-body > p:last-child { margin-bottom: 0; }
.page .prose section .actions { margin: 32px 0 0; }
.page .prose section .actions + * { margin-top: 32px; }

/* Two-column split: prose beside a product scene or an illustration. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.flip > .sec-body { order: 2; }
.hero.split { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 64px; }
.wide > h2, .steps > h2 { max-width: 24ch; }
.wide > h2 + p, .steps > h2 + p { font-size: 1.125rem; max-width: 62ch; }

/* Tones */
.band { background: var(--paper); }
.quiet { padding-top: 64px !important; padding-bottom: 64px !important; }
.dark { background: var(--forest); color: var(--on-forest-muted); border-top-color: var(--forest) !important; }
.dark h2, .dark h3, .dark strong { color: #fff !important; }
.dark a { color: #8FD6B0; }
.dark a:hover { color: #fff; }
.dark .btn-primary { background: #fff; color: var(--forest); }
.dark .btn-primary:hover { background: var(--green-tint); color: var(--forest); }
.dark .btn-quiet { border-color: #4B6A5B; color: #fff; }
.dark .btn-quiet:hover { border-color: #fff; color: #fff; }
.dark .points > li { border-top-color: var(--line-on-forest); }
.dark + section { border-top-color: transparent; }

/* --- prose elements ------------------------------------------------------- */

.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; max-width: 64ch; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--green); }
.prose li > ul { margin: 8px 0 0; }
.prose .claim { color: var(--ink); font-size: 1.0625rem; }
.prose .claim strong { font-weight: 600; }

.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--sand); padding: 2px 5px; border-radius: 5px; }
.prose pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: var(--sand); border-radius: var(--radius-small); }
.prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.65; }
.prose blockquote:not(.scene) { margin: 0 0 18px; padding: 20px 24px; background: var(--sand); border-radius: var(--radius-small); }
.prose blockquote:not(.scene) p:last-child { margin-bottom: 0; }

/* Points: a list whose items open with a bold or linked lead-in. Hairline rows, not boxes. */
.points { list-style: none; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.points > li { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.points > li:last-child { padding-bottom: 0; }
.points > li > strong:first-child,
.points > li > a:first-child {
  display: block; margin-bottom: 4px;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink);
}
.points > li > a:first-child { text-decoration: none; width: fit-content; }
.points > li > a:first-child::after {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.45em;
  border-top: 2px solid var(--green); border-right: 2px solid var(--green);
  transform: translateY(-0.08em) rotate(45deg); transition: transform 0.2s var(--ease);
}
.points > li > a:first-child:hover { color: var(--green-strong); }
.points > li > a:first-child:hover::after { transform: translate(0.25em, -0.08em) rotate(45deg); }

.wide > .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-top: 40px !important; }
.wide > .points > li { padding: 22px 0 26px; }

/* Steps: an ordered list drawn as a route with numbered anchors. The order is the information. */
.steps > ol {
  list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0; max-width: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px;
}
.steps > ol > li { counter-increment: step; position: relative; margin: 0; padding-top: 58px; font-size: 16px; }
.steps > ol > li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--chalk); border: 2px solid var(--rope); color: var(--ink);
  font: 600 16px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.steps > ol > li::after {
  content: ''; position: absolute; top: 18px; left: 38px; right: -28px; border-top: 2px dashed var(--rope); opacity: 0.55;
}
.steps > ol > li:last-child::after { display: none; }
.steps.band > ol > li::before { background: var(--paper); }
.steps > ol > li > strong:first-child { display: block; margin-bottom: 6px; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }

/* Product scene: an illustrated exchange with the agent. */
.scene {
  margin: 0; padding: 22px 22px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15.5px; line-height: 1.5;
}
.scene::before {
  content: 'Illustration'; align-self: flex-start;
  font: 500 12.5px/1 var(--sans); color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 4px;
}
.scene .turn { margin: 0 !important; max-width: 92% !important; padding: 12px 16px; border-radius: 16px; }
.scene .turn-you { align-self: flex-end; background: var(--green-tint); color: var(--ink); border-bottom-right-radius: 5px; }
.scene .turn-agent { align-self: flex-start; background: var(--chalk); border-bottom-left-radius: 5px; }
.scene .turn-more { margin-top: -6px !important; }
.scene .turn-who { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; color: var(--green-strong); }
.scene .turn-you .turn-who { display: none; }
/* Named people on the team: on the reader's side, each named, the second in a different colour. */
.scene .turn-person { align-self: flex-end; background: var(--green-tint); color: var(--ink); border-bottom-right-radius: 5px; }
.scene .turn-person-2 { background: var(--sand); }
.scene .turn-person .turn-who { color: var(--ink); }
.scene strong { font-weight: 600; }
.scene code { background: var(--sand); }

@media (prefers-reduced-motion: no-preference) {
  .hero .scene .turn { animation: turn-in 0.7s var(--ease) backwards; }
  .hero .scene .turn:nth-child(2) { animation-delay: 0.35s; }
  .hero .scene .turn:nth-child(3) { animation-delay: 0.7s; }
  .hero .scene .turn:nth-child(4) { animation-delay: 1.05s; }
  .hero .scene .turn:nth-child(5) { animation-delay: 1.4s; }
  .hero .scene .turn:nth-child(6) { animation-delay: 1.75s; }
  @keyframes turn-in { from { opacity: 0; transform: translateY(10px); } }
}

/* Illustrations */
.art { margin: 0; }
.art svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.wide > .art { margin: 56px auto 0; max-width: 720px; }
.wide > .art-fiori-demo { max-width: 1040px; }
.art-fiori-demo svg { filter: drop-shadow(0 14px 22px rgba(21, 32, 27, 0.12)); padding-bottom: 6px; }
.art-test-flow svg { max-width: 520px; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(21, 32, 27, 0.10)); padding-bottom: 6px; }

/* Photos: real ones, of the people behind the product. Framed like the scenes so they sit in the
   same visual family. */
.photo { margin: 0; }
.photo img {
  display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow); background: var(--sand);
}
.photo figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 500; font-size: 14px; border-bottom-color: #BDB8AA; }

/* --- closing call to action ----------------------------------------------- */

.cta { background: var(--green); color: #F0F8F3; padding: 88px var(--gutter); }
.cta-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.cta h2 { margin: 0 0 14px; max-width: 18ch; color: #fff; font-weight: 600; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.cta p { margin: 0; max-width: 52ch; font-size: 1.125rem; }
.cta .actions { margin: 0; justify-content: flex-end; }
.cta .btn-primary { background: #fff; color: var(--forest); }
.cta .btn-primary:hover { background: var(--forest); color: #fff; }
.cta .btn-quiet { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta .btn-quiet:hover { border-color: #fff; color: #fff; }
.cta ::selection { background: var(--forest); }

/* --- docs ----------------------------------------------------------------- */

.doc {
  max-width: calc(1320px + 2 * var(--pad)); margin: 0 auto; padding: 48px var(--pad) 96px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 56px; align-items: start;
  font-size: 16px;
}
.doc .prose { max-width: 72ch; }
.doc .hero h1 { font-size: 2.125rem; letter-spacing: -0.025em; line-height: 1.12; max-width: none; margin-bottom: 20px; }
.doc .hero .lede { font-size: 1.125rem; margin: 0 0 18px; }
.doc .prose h2 { margin: 0 0 14px; font-weight: 600; font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.018em; color: var(--ink); }
.doc .prose h3 { margin: 28px 0 10px; font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.doc .prose p { margin: 0 0 16px; }
.doc .prose section { padding: 28px 0 12px; }
.doc .scene { box-shadow: none; margin-bottom: 18px; }
.doc-nav, .doc-toc { position: sticky; top: 92px; font-size: 14.5px; max-height: calc(100vh - 110px); overflow-y: auto; }
.doc-nav ul, .doc-toc ul { list-style: none; margin: 0 0 22px; padding: 0; }
.doc-nav li, .doc-toc li { margin: 0 0 2px; }
.doc-nav a, .doc-toc a { display: block; padding: 4px 10px; margin-left: -10px; border-radius: 7px; color: var(--body); text-decoration: none; }
.doc-nav a:hover, .doc-toc a:hover { color: var(--ink); background: var(--sand); }
.doc-nav a[aria-current] { color: var(--ink); font-weight: 600; background: var(--sand); }
.doc-nav-group, .doc-toc-label { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.doc-meta { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1180px) {
  .doc { grid-template-columns: 200px minmax(0, 1fr); }
  .doc-toc { display: none; }
}
@media (max-width: 960px) {
  :root { --section: 72px; --pad: 22px; }
  .site-head-in { gap: 10px; }
  .site-nav { display: none; }
  .site-menu { display: block; margin-left: auto; }
  .page .hero { padding-top: 56px; padding-bottom: 64px; }
  .split, .hero.split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.flip > .sec-body { order: 0; }
  .page .prose > section:not(.split):not(.wide):not(.steps) { display: block; }
  .wide > .points { grid-template-columns: minmax(0, 1fr); }
  .steps > ol { display: block; margin-top: 40px; }
  .steps > ol > li { padding: 4px 0 30px 58px; }
  .steps > ol > li::after { top: 38px; bottom: 0; left: 18px; right: auto; border-top: 0; border-left: 2px dashed var(--rope); }
  .cta { padding-top: 64px; padding-bottom: 64px; }
  .cta-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cta .actions { justify-content: flex-start; }
  .site-foot-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
}
@media (max-width: 780px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .doc-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; padding: 12px 20px; line-height: 1.2; }
  .cta .btn { width: 100%; }
}
@media (max-width: 560px) {
  .head-cta { white-space: nowrap; padding: 0 14px; min-height: 38px; font-size: 14.5px; }
  .site-head-in { gap: 8px; }
}
@media (max-width: 960px) {
  .site-head { background: var(--chalk); }
}
@media (max-width: 640px) {
  /* The chart's labels are unreadable when it is squeezed to phone width, so it keeps a readable
     size and scrolls sideways inside its own box. */
  .art { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .art svg { width: 540px; max-width: none; }
}
@media (max-width: 640px) {
  /* A three-column table is unreadable at phone width; it keeps its width and scrolls in its box. */
  .prose table { min-width: 560px; }
}
@media (max-width: 640px) {
  .art-fiori-demo svg { width: 820px; }
  /* A tall card with short lines: it fits the phone's width rather than scrolling, so the result
     column on the right stays in view. */
  .art-test-flow { overflow: visible; }
  .art-test-flow svg { width: 100%; max-width: 520px; }
}
