/* ReadShore's public pages. The page system is the tasteskill kit in /kit/ (unchanged files); this sheet holds
   the brand tokens, the self-hosted IBM Plex faces (SIL OFL, /fonts/IBM-Plex-OFL.txt), the homepage's
   sections and the other pages' templates (at the end). */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-stretch: 85% 100%; font-display: swap; src: url(/fonts/ibm-plex-sans-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-stretch: 85% 100%; font-display: swap; src: url(/fonts/ibm-plex-sans-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --p-bg: #ffffff; --p-surface: #f2f6f4; --p-ink: #26312e; --p-muted: #596660;
  --p-accent: #1c6c66; --p-accent-ink: #ffffff; --p-action: #131314; --p-action-ink: #e3e3e3;
  --p-inv-bg: #26312e; --p-inv-surface: #333d3a; --p-inv-ink: #ffffff; --p-inv-muted: #a5aaa9;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #26312e; --p-inv-action: #ffffff; --p-inv-action-ink: #1f1f1f;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500; --display-tracking: -0.025em; --display-tracking-xl: -0.035em; --ly-scale: 0.98;
}
  /* the client's logo in the bar and the footer */
  .nav__logo img { width: 26px; height: 26px; border-radius: 7px; }
  @media (max-width: 479px) { .nav:not(.is-open) .nav__name { display: none; } }
  .footer__mark img { width: 44px; height: 44px; border-radius: 11px; margin-right: 14px; }

  /* The homepage names the intent; provider choice belongs to /app/. */
  .nav__login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 8px; font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
  .nav:not(.is-open) .nav__actions > .nav__login { display: inline-flex; }
  .nav.is-open .nav__login { order: 2; }
  @media (max-width: 639px) { .nav__actions { gap: 8px; } }

  /* hero: the headline on one line across the page axis, the agents in one row under the buttons */
  .hero--centred .hero__c { max-width: none; }
  .hero--centred h1 { max-width: none; text-wrap: balance; }
  .hero--centred .hero__lead { max-width: 66ch; color: var(--ink); }
  .hero__introduction { max-width: 48ch; margin: var(--s-2) auto 0; font-size: var(--t-lead); text-wrap: balance; }
  .agents-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: var(--s-2) 0 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--ink); }
  .agents-row li:first-child { flex: 0 0 100%; text-align: center; }
  .agents-row img { display: block; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
  @media (max-width: 639px) { .agents-row { gap: 8px; } .agents-row img { width: 30px; height: 30px; } }

  /* the lit ground of the hero window and of the diagram frame */
  .hero--centred .hero__window, #agents .frame { background:
      radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
      radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 82%, var(--ground-accent)), transparent 70%),
      var(--ground-bg); }
  /* the window rises out of the frame and runs on past its foot, under the fade */
  .hero--centred .hero__window { -webkit-mask-image: none; mask-image: none; }
  /* Claude's answer docks in the window's right column; the saved items keep the left */
  .rs-win > .rs-note { position: absolute; right: 16px; top: 54px; width: 300px; z-index: 2; }
  @media (min-width: 1280px) { .hero .rs-main { padding-right: 332px; } }
  @media (max-width: 1279px) { .rs-win > .rs-note { display: none; } }

  /* ReadShore's own web app, drawn in its dark tokens (website/public/app/style.css) */
  .rs {
    --rs-ground: #1c1b1a; --rs-deep: #100f0f; --rs-surface: #282726; --rs-surface-2: #343331; --rs-divider: #403e3c;
    --rs-ink: #fffcf0; --rs-ink-2: #cecdc3; --rs-ink-3: #b7b5ac; --rs-accent: #5abdac; --rs-edge: rgb(255 252 240 / .09);
    --rs-serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Songti TC", serif;
    color: var(--rs-ink); font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-align: left;
  }
  .rs-win { display: flex; flex-direction: column; background: var(--rs-ground); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 24px 60px -24px rgb(16 15 15 / .55); }
  .rs-win__bar { flex: none; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: var(--rs-deep); color: var(--rs-ink-3); font-size: 12px; }
  .rs-dots { display: inline-flex; gap: 6px; } .rs-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rs-surface-2); }
  .rs-win__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 148px minmax(0, 1fr); }
  .rs-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: var(--rs-deep); border-right: 1px solid var(--rs-edge); }
  .rs-side > span { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--rs-ink-2); }
  .rs-side > span.is-on { background: var(--rs-surface); color: var(--rs-ink); }
  .rs-side > .rs-brand { height: 36px; margin-bottom: 12px; font-weight: 600; font-size: 14px; color: var(--rs-ink); }
  .rs-brand img { width: 22px; height: 22px; border-radius: 6px; }
  .rs-side svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .rs-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 20px 20px; }
  .rs-head { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
  .rs-h { font: 600 22px/1.1 var(--rs-serif); color: var(--rs-ink); }
  .rs-seg { display: inline-flex; gap: 16px; font-size: 12px; color: var(--rs-ink-3); }
  .rs-seg i { font-style: normal; padding-bottom: 3px; border-bottom: 2px solid transparent; } .rs-seg i.is-on { border-bottom-color: var(--rs-accent); color: var(--rs-ink); }
  .rs-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
  .rs-card { flex: none; width: 100%; display: grid; gap: 7px; padding: 14px 16px; border-radius: 14px; background: var(--rs-surface); box-shadow: inset 0 0 0 1px var(--rs-edge); }
  .rs-src { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rs-ink-3); }
  .rs-src img { width: 16px; height: 16px; padding: 2px; border-radius: 4px; background: #ffffff; flex: none; }
  .rs-src svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }
  .rs-title { font: 600 16px/1.3 var(--rs-serif); color: var(--rs-ink); }
  .rs-glance { padding-left: 10px; border-left: 2px solid var(--rs-accent); color: var(--rs-ink-2); }
  @media (max-width: 1023px) { .rs-win__body { grid-template-columns: minmax(0, 1fr); } .rs-side { display: none; } }
  @media (max-width: 639px) { .rs-main { padding: 14px 14px 36px; } .rs-head { margin: 0 0 10px; } .hero .rs-glance { display: none; } }

  /* line breaks: titles balance, running lines never end on a lone word */
  .rs-title, .app__h, .steps-cards .card p, .steps-cards .card h3 { text-wrap: balance; }
  .rs-glance, .app__p, .app__glance, .acts span, .faq p, .hero__lead, .mo-la__sub { text-wrap: pretty; }
  .app__pill span, .rs-src { white-space: nowrap; }
  /* the small card over the window: an agent's answer, step by step */
  .rs-note { padding: 14px 16px 10px; border-radius: 14px; background: #ffffff; color: #16181a; font: 400 13px/1.4 var(--font-text); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -16px rgb(16 15 15 / .45); }
  .rs-note__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .rs-note__head img { width: 22px; height: 22px; border-radius: 6px; }
  .rs-note__head b { font-weight: 600; font-size: 14px; }
  .rs-note__chip { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #e3f1ee; color: #16544f; font-size: 12px; font-weight: 500; }
  .rs-note__q { margin-bottom: 6px; padding: 8px 12px; border-radius: 12px; background: #f2f6f4; color: #26312e; }
  .rs-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
  .rs-note__line:first-of-type { border-top: 0; }
  .rs-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e3f1ee; color: #16544f; font-style: normal; font-size: 12px; font-weight: 700; }
  .rs-note__line b { font-weight: 600; color: #16181a; }

  /* a section heading stands on one line across the container */
  .section-head.head-one { max-width: none; }
  .section-head.head-one > p { max-width: 62ch; }
  /* the statement belongs to the display tier: h1's size, eased only as far as its line count needs.
     One line from 1024, two lines under it. */
  #attention .mo-la__type { max-width: 9em; font-size: var(--ly-h1); line-height: 1.06; letter-spacing: -0.035em; }
  @media (min-width: 1024px) { #attention .mo-la__type { max-width: none; font-size: min(var(--ly-h1), 5.3vw); line-height: 1.05; } }
  /* type roles where a heading has to wrap. From 640 up every heading stands on one line; under 640 the
     h1 and each long h2 set on exactly two lines at every phone width, like the statement.
     Phone scale: display 39-41 / h2 26 / h3 18 / lead 18 / body 16. h1:h2 holds 1.5 as on desktop (72:48);
     leading opens and tracking eases as the size drops (1.08 and -0.03em, then 1.2 and -0.02em). */
  @media (min-width: 640px) { .closing__cta h2 { max-width: none; } }
  @media (min-width: 640px) and (max-width: 699px) { :root { --t-h2: 30px; --ly-h1: 42px; } }
  @media (max-width: 639px) {
    :root { --t-h2: 26px; }
    .hero--centred h1 { max-width: 9.5em; line-height: 1.08; letter-spacing: -0.03em; }
    h2 { line-height: 1.2; letter-spacing: -0.02em; }
    main h2:not(.mo-la__type) { max-width: 13em; }
    .closing__cta h2 { max-width: 10em; }
    #attention .mo-la__type { font-size: min(var(--ly-h1), 11.27vw - 5.4px); line-height: 1.08; letter-spacing: -0.03em; }
  }
  /* the statement holds the top of its screen and the three depths its foot */
  #attention > .wrap { display: flex; flex-direction: column; }
  .depths { margin: auto 0 0; padding-top: var(--s-8); }
  .depths > div { grid-column: 1 / -1; padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .depths dt { font: 500 var(--t-lead)/1.4 var(--font-text); }
  .depths dd { margin: var(--s-2) 0 0; text-wrap: pretty; }
  @media (min-width: 768px) {
    .depths > div { display: grid; grid-template-columns: subgrid; align-items: baseline; }
    .depths dt { grid-column: span 4; }
    .depths dd { grid-column: span 8; margin: 0; }
  }
  /* agents: the three actions as plain lines, the address in mono */
  .acts { margin-bottom: 0; padding: 0; list-style: none; }
  .acts li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
  .acts li:last-child { border-bottom: 1px solid var(--line); }
  .acts b { font-weight: 600; }
  /* a phone: the address stays in the guide; the section grows with its words on the narrowest screens */
  @media (max-width: 639px) { #agents .addr, #agents .agents-more { display: none; } #agents .grid.fill { flex: 1 0 auto; } #agents .grid.fill > .frame--fill { flex: 1 0 200px; } }
  .addr { font: 500 var(--t-small)/1.5 var(--font-mono); color: var(--muted); }
  .addr code { font: inherit; color: var(--ink); }

  /* library: the app frame (sections-library.md, app-frame), in the web app's dark tokens */
  .app.ui { --fx-bg: #1c1b1a; --fx-surface: #282726; --fx-ink: #fffcf0; --fx-muted: #b7b5ac; --fx-accent: #5abdac; --fx-accent-ink: #100f0f;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 0; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
  .app > .app__pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--u-line); }
  .app__bar .rs-h { font-size: 20px; }
  .app__bar .rs-seg { margin-left: auto; }
  .app__rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; margin: 0; padding: 6px 8px 0; list-style: none; }
  .app__row { flex: none; width: 100%; display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; }
  .app__row.is-on { background: var(--rs-surface); box-shadow: inset 0 0 0 1px var(--rs-edge); }
  .app__row .rs-title { font-size: 15px; }
  .app__row .rs-glance { border-left: 0; padding-left: 0; color: var(--rs-ink-3); }
  .app__back { display: inline-flex; align-items: center; gap: 6px; color: var(--rs-ink-2); }
  .app__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .app__pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
  .app__pill span { padding: 5px 14px; border-radius: 999px; color: var(--rs-ink-2); }
  .app__pill span.is-main { background: var(--rs-accent); color: #100f0f; font-weight: 600; }
  .app__doc { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; overflow: hidden; padding: 28px 40px 0; }
  .rs [hidden] { display: none !important; }
  .app__sec { flex: none; width: 100%; max-width: 640px; }
  .app__h { margin: 10px 0 0; font: 600 28px/1.2 var(--rs-serif); color: var(--rs-ink); }
  .app__glance { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--rs-surface); box-shadow: inset 0 0 0 1px var(--rs-edge); font-size: 15px; line-height: 1.5; color: var(--rs-ink); }
  .app__label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--rs-accent); }
  .app__p { font-size: 14px; line-height: 1.6; color: var(--rs-ink-2); }
  .app__p.is-text { font: 400 16px/1.65 var(--rs-serif); color: var(--rs-ink); }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { height: 252px; }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
    .app__doc { padding: 20px 18px 0; } .app__h { font-size: 22px; }
  }

  /* steps: the App's own captures in a near-black device frame, cut by the panel */
  #steps .panel { --p-h: 400px; }
  .steps-cards > .card { grid-column: 1 / -1; }
  @media (min-width: 1024px) { .steps-cards > .card { grid-column: auto / span 4; } }
  @media (min-width: 640px) and (max-width: 1023px) {
    .steps-cards { flex: 1 1 0; grid-auto-rows: minmax(0, 1fr); }
    .steps-cards > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: var(--s-6); }
    .steps-cards > .card > :not(.panel) { grid-column: 1; }
    #steps .steps-cards > .card > .panel { grid-column: 2; grid-row: 1 / span 4; height: auto; min-height: 200px; margin: calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) 0; border-radius: calc(var(--c-r) - var(--c-gap)); }
  }
  /* questions: the words and the answers side by side, the capture under the words down to the section's foot */
  .faq-grid { grid-template-rows: auto minmax(200px, 1fr); }
  .faq-text { display: contents; }
  .faq-grid .faq-side { grid-column: 1 / span 5; grid-row: 1; }
  .faq-grid .faq { grid-column: 7 / -1; grid-row: 1 / span 2; }
  .faq-grid > .faq-shot { grid-column: 1 / span 5; grid-row: 2; height: auto; min-height: 200px; }
  @media (min-width: 640px) and (max-width: 1023px) {
    .faq-grid { grid-template-rows: minmax(240px, 1fr) auto; }
    .faq-grid .faq-side { grid-column: 1 / span 6; }
    .faq-grid > .faq-shot { grid-column: 7 / -1; grid-row: 1; }
    .faq-grid .faq { grid-column: 1 / -1; grid-row: 2; }
  }
  .device { position: absolute; left: 50%; top: 32px; width: min(232px, calc(100% - 48px)); translate: -50% 0; padding: 5px; border-radius: 30px; background: #111513; box-shadow: 0 18px 40px rgb(21 51 43 / .16); }
  .device img { display: block; width: 100%; height: auto; border-radius: 25px; }
  .device--up { top: auto; bottom: 28px; }
  @media (max-width: 639px) { #steps .panel { --p-h: 300px; } #questions .faq-grid { display: contents; } .faq-text { display: block; } .faq-text > .faq { margin-top: var(--s-6); } #questions .faq-shot { min-height: 0; } .faq-shot .device { width: 232px; top: 40px; } .device { width: 200px; top: 20px; } .device--up { top: auto; bottom: 20px; } }
  /* the nav marks the section on screen */
  .nav__link[aria-current="location"]::before { transform: scaleX(1); transform-origin: left; }
  #attention .mo-la__sub { color: var(--ink); }

  /* Traditional Chinese and Japanese: IBM Plex carries the Latin letters and the platform face the rest;
     lines break only between phrases (finalize.mjs adds the breaks), tracking stays normal and the
     leading opens for the taller glyphs (the account pages do the same in account.css). */
  :lang(zh), :lang(ja) { word-break: keep-all; line-break: strict; }
  :root:lang(zh) { --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --font-text: var(--font-display); }
  :root:lang(ja) { --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; --font-text: var(--font-display); }
  :lang(zh) :is(h1, h2, h3, .mo-la__type), :lang(ja) :is(h1, h2, h3, .mo-la__type) { letter-spacing: 0; }
  :lang(zh) :is(h1, .mo-la__type), :lang(ja) :is(h1, .mo-la__type) { line-height: 1.25; }
  :lang(zh) h2, :lang(ja) h2 { line-height: 1.35; }
  :lang(zh) :is(p, dd, li), :lang(ja) :is(p, dd, li) { line-height: 1.75; }

  /* the share sheet for this page, which the App's first-save practice opens (share.js shows it on iPhone) */
  .share-page { margin-top: var(--s-2); }
  .share-page[hidden] { display: none; }
  .share-page .btn > svg { width: 18px; height: 18px; }
  /* the three steps take two screens on a phone (the kit reads --hm) */
  #steps { --hm: 2; }
/* The footer's link columns hold full guide names: from 1024 the mark (with the other languages
   under it) and the three link columns take three grid columns each, keeping the close and the links
   on one screen; below 1024 the mark takes its own row and the columns go two-up. A wrapped name
   splits evenly. */
@media (max-width: 1023px) { .footer .grid > .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .footer .footer__col { grid-column: auto / span 6; } }
.footer__col a { text-wrap: balance; }
.footer__legal > span { text-wrap: balance; }
.footer .footer__languages { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
/* the mark shares its row with the link columns from 1024, so it scales with the viewport there */
@media (min-width: 1024px) { .footer__brand .footer__mark { font-size: min(var(--t-h2), 2.6vw); } }

/* ---------------------------------------------------------------- the ways in
   Get started opens the web app everywhere; the second way in is the Chrome extension on a desktop
   pointer and the App Store on a touch screen. The App's share-sheet offer takes that place when shown. */
.btn__mark { width: 18px; height: 18px; flex: none; object-fit: contain; }
@media (hover: none), (pointer: coarse) { .on-pointer { display: none !important; } }
@media (hover: hover) and (pointer: fine) { .on-touch { display: none !important; } }
.hero__c:has(.share-page:not([hidden])) .on-touch { display: none !important; }

/* ---------------------------------------------------------------- the other pages
   A centred header like the homepage's, the product across the wrap, then one reading measure beside
   a contents rail, and the other guides as cards. Long text sets its own height: these pages read,
   they are not a stack of screens. Support, privacy and terms open on a quiet band with no picture. */
.page-head { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-8); text-align: center; }
.page-head > .wrap { display: flex; flex-direction: column; align-items: center; }
.page-head h1 { max-width: 18em; font-size: min(var(--t-h1), 64px, 10.5vw); line-height: 1.08; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
.page-head .t-lead { max-width: 58ch; margin-top: var(--s-5); color: var(--ink); text-wrap: balance; }
/* balance stops at six lines, so a long introduction on a phone keeps its last word company instead */
@media (max-width: 639px) { .page-head .t-lead { text-wrap: pretty; } }
.page-byline { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.page-byline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.page-byline a:hover { text-decoration-color: currentColor; }
.page-head .btn-row { justify-content: center; margin-top: var(--s-6); }
.page-head--document { padding-bottom: var(--s-8); background: var(--surface); text-align: left; }
.page-head--document > .wrap { align-items: flex-start; }
.page-head--document h1 { max-width: 20em; font-size: min(var(--t-h1), 56px); }
.page-head--document .t-lead { max-width: 60ch; margin-top: var(--s-4); text-wrap: pretty; }
.page-head--document .btn-row { justify-content: flex-start; }
.page-elsewhere { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-5); }
.page-elsewhere a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }

/* the product across the wrap, on the lit ground of the homepage's frames */
.page-band { padding-bottom: var(--s-9); }
.page-band__frame { height: 520px; padding: 0; border: 0; overflow: clip; align-items: flex-start; background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 82%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.page-band__frame > .app.ui { position: absolute; left: 6%; right: 6%; top: 48px; height: 560px; }
.page-band__frame > .page-band__window { position: absolute; left: 6%; right: 6%; top: 48px; height: 600px; }
.page-band__window > .rs-win { height: 100%; }
.page-band__frame--agents { padding: var(--s-6); align-items: center; }
.page-band__frame--agents > .dg { width: 100%; height: 100%; }
.page-band .phones { position: absolute; inset: 48px 0 0; display: flex; justify-content: center; gap: var(--s-8); }
.page-band .phones .device { position: relative; left: auto; top: auto; translate: none; flex: none; width: 232px; }
@media (max-width: 1023px) {
  .page-band__frame { height: 440px; }
  .page-band .phones { gap: var(--s-6); }
  .page-band .phones .device:nth-child(3) { display: none; }
}
@media (max-width: 639px) {
  .page-head { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-7); }
  .page-band { padding-bottom: var(--s-8); }
  .page-band__frame { height: 340px; }
  .page-band__frame > .app.ui, .page-band__frame > .page-band__window { left: 16px; right: 16px; top: 28px; }
  .page-band .phones { inset-block-start: 28px; }
  .page-band .phones .device { width: 200px; }
  .page-band .phones .device:nth-child(n+2) { display: none; }
}

/* one reading measure beside a contents rail that follows the reader */
.page-read { padding: var(--s-9) 0 var(--s-10); }
.page-head + .page-read { padding-top: var(--s-8); }
.page-read > .wrap.grid { align-items: start; row-gap: var(--s-7); }
.page-toc { position: sticky; top: calc(var(--nav) + var(--s-6)); grid-column: 1 / span 4; max-height: calc(100vh - var(--nav) - var(--s-6) * 2); overflow-y: auto; font-size: var(--t-small); }
.page-toc__label { margin: 0 0 var(--s-3); font-weight: 500; color: var(--ink); }
.page-toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.page-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; text-wrap: pretty; }
.page-toc a:hover { color: var(--ink); }
.page-toc a[aria-current="location"] { border-left-color: var(--accent); color: var(--ink); font-weight: 500; }
/* headings take the column's width; running text keeps a reading measure */
.prose { grid-column: 5 / span 8; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose :is(p, ul, ol:not(.guide-steps), dl) { max-width: 68ch; }
.page-read:not(:has(.page-toc)) .prose { grid-column: 1 / span 8; }
.prose :is(p, ul, ol, dl, pre, .table-scroll) + :is(p, ul, ol, dl, pre, .table-scroll, h3) { margin-top: var(--s-5); }
.prose > section + section, .prose section + section, .prose > :is(p, ol) + section { margin-top: var(--s-8); }
.prose :is(h2, h3, p, li, dd) { color: var(--ink); }
.prose :is(h2, h3) { hyphens: manual; -webkit-hyphens: manual; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.prose h3 { margin-top: var(--s-6); font: 500 20px/1.35 var(--font-text); letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-4); }
.prose :is(section, li)[id] { scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.prose :is(p, li, dd, td, th) { text-wrap: pretty; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-2); }
.prose code { padding: 1px 5px; border-radius: 5px; background: var(--surface); font: 500 .88em/1.5 var(--font-mono); overflow-wrap: anywhere; }
.prose pre { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); overflow-x: auto; }
.prose pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.prose .table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { color: var(--muted); font-weight: 500; }
.prose tbody th { font-weight: 400; }
.prose tbody th code { white-space: nowrap; }
.prose dl { margin-bottom: 0; } .prose dt { margin-top: var(--s-4); font-weight: 600; } .prose dd { margin: var(--s-1) 0 0; }
.prose .url { overflow-wrap: anywhere; }
.prose .guide-steps { padding: 0; list-style: none; }
.prose .guide-steps > li { position: relative; padding-left: 52px; }
.prose .guide-steps > li + li { margin-top: var(--s-7); }
.prose .guide-steps > li::before { content: counter(list-item); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); font: 600 15px/1 var(--font-text); }
.prose .guide-steps h2 { font-size: 22px; letter-spacing: -0.01em; }
.page-read--legal .prose h2 { font-size: 24px; }
@media (max-width: 1279px) {
  .page-toc { position: static; grid-column: 1 / -1; max-height: none; }
  .page-toc ul { columns: 2; column-gap: var(--s-6); }
  .page-toc li { break-inside: avoid; }
  .prose, .page-read:not(:has(.page-toc)) .prose { grid-column: 1 / -1; }
}
@media (max-width: 899px) { .page-toc ul { columns: 1; } }
@media (max-width: 639px) {
  .page-read { padding: var(--s-8) 0; }
  .prose { font-size: 16px; } .prose h2 { font-size: 24px; } .page-read--legal .prose h2 { font-size: 22px; }
  .prose thead { display: none; }
  .prose tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose tbody :is(th, td) { display: block; padding: 0; border: 0; }
  .prose tbody td { margin-top: 4px; }
  .prose tbody td:last-child::before { content: attr(data-label) "："; color: var(--muted); }
  .prose tbody td:last-child:lang(en)::before { content: attr(data-label) ": "; }
}

/* keep reading: the other guides as linked cards, the whole card the link */
main > section.page-more { height: auto; padding: var(--s-9) 0; border-top: 1px solid var(--line); }
.page-more .grid { margin-top: var(--s-7); }
.page-card { position: relative; grid-column: 1 / -1; gap: var(--s-3); padding: var(--s-5); }
.page-card h3 { font-size: 19px; text-wrap: balance; }
.page-card h3 a { color: var(--ink); text-decoration: none; }
.page-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.page-card h3 a:focus-visible { outline: none; }
.page-card:has(a:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.page-card p { color: var(--muted); font-size: 15px; }
@media (min-width: 1200px) { .page-card { grid-column: auto / span 6; } }

/* A shared article (/a/<id>, content/share-page.mjs): one reading column, left-aligned like the
   article it summarizes. The title and source, then the Summary as ReadShore wrote it, then the way
   to save it. The column is the prose measure; nothing is boxed. */
.share-head { text-align: left; padding-bottom: var(--s-6); }
.share-head > .wrap, .share-summary > .wrap, .share-get > .wrap { align-items: flex-start; }
.share-head h1 { max-width: 22em; font-size: min(var(--t-h1), 52px, 9vw); line-height: 1.12; }
.share-source { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-4); row-gap: var(--s-2); margin-top: var(--s-4); color: var(--muted); font-size: var(--t-small); }
.share-source__facts:empty { display: none; }
.share-source__facts span + span::before { content: "·"; margin-inline: 0.5em; }
.share-source__original { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--accent); font-weight: 500; text-underline-offset: 4px; }
.share-summary { padding-bottom: var(--s-8); }
.share-summary__column { max-width: 68ch; padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.share-summary__label { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); color: var(--muted); font-size: var(--t-small); font-weight: 500; }
.share-summary__label img { border-radius: 6px; }
.share-summary__body { font-size: 18px; line-height: 1.7; }
.share-summary__body > :is(p, ul, ol) { margin: 0 0 var(--s-4); text-wrap: pretty; }
.share-summary__body ul { padding-left: 1.3em; list-style: disc; }
.share-summary__body ol { padding-left: 1.3em; list-style: decimal; }
.share-summary__body li { text-wrap: pretty; }
.share-summary__body li + li { margin-top: var(--s-2); }
.share-summary__body li::marker { color: var(--accent); }
.share-summary__by { margin-top: var(--s-5); color: var(--muted); font-size: var(--t-small); }
.share-get { padding: var(--s-8) 0 var(--s-9); background: var(--surface); }
.share-get > .wrap { display: flex; flex-direction: column; gap: var(--s-4); }
.share-get__promise { font: var(--display-weight) min(var(--t-h3, 28px), 7vw)/1.25 var(--font-display); letter-spacing: var(--display-tracking); text-wrap: balance; }
@media (max-width: 639px) {
  .share-summary__body { font-size: 17px; }
  .share-get { padding: var(--s-7) 0 var(--s-8); }
  .share-get .btn { align-self: stretch; }
}
