/* The Your data page: what more than one of its screens draws with. Each screen's own
   rules (desktop, then its phone block, then its motion) are in this folder, one file each.
   Drawings are made in design px and scale with their column; type keeps the site's steps
   (tokens.css). Every control is a real one: native radios, checkboxes and buttons, each
   with the site's focus ring. */

/* --dot: the travelling dot at full size, the hero's full stop (0.2 em of its 150 px
   headline at 1440); on the phone, the phone hero's (0.2 em of 64 px at 390, up to 1.25x). */
.dt-screen { --dot: calc(30 * var(--u)); }

/* ---------------------------------------------------------------- a screen's board */
/* The copy on the logo's left line, then the demo and the answers beside it. */
.dt-board { position: relative; max-width: 1440px; margin: 0 auto; padding: calc(120 * var(--u)) var(--m) calc(120 * var(--u)); }
.dt-head { max-width: 50rem; }
.dt-head .d-l { max-width: 13em; }
.dt-mid { margin-top: calc(26 * var(--u)); max-width: 34em; font-size: var(--fs-how); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.dt-small { margin-top: 16px; max-width: 40em; font-size: var(--fs-body); line-height: 1.5; color: var(--plum); text-wrap: pretty; }
/* A headline's full stop as a station: 0.2 em on the baseline after the last letter. */
.dt-head .station[data-station="stop"] { position: relative; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.05em; border-radius: 50%; vertical-align: baseline; }

.dt-play { container: play / inline-size; display: grid; grid-template-columns: minmax(0, 1fr) max(260px, calc(320 * var(--u))); column-gap: calc(80 * var(--u)); align-items: start; margin-top: calc(64 * var(--u)); }
.dt-demo { position: relative; min-width: 0; container: demo / inline-size; }

/* A ground of its own between two rims: lilac (the redaction) or haze (the controls). */
.dt-ground { background: var(--lilac); }
.dt-ground-haze { background: var(--haze); }

/* ---------------------------------------------------------------- answers on the side */
/* A column of plain questions, each answer under it, always open: the ink rule on top is
   the column's ground. */
.dt-aside { border-top: 2px solid var(--ink); padding-top: 18px; }
.dt-aside-h { color: var(--plum); }
.dt-qa > div { margin-top: 22px; }
.dt-qa dt { font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.dt-qa dd { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------------------------------------------------------------- the drawn things' parts */
/* A small head (a transcript row, a To line), drawn in its own SVG. */
.dt-face { display: block; flex: none; width: 30px; height: 35px; overflow: visible; }
/* A place's mark on its ground: the machine's dome, the folder, OpenAI's ring. */
.dt-mark { display: inline-block; flex: none; width: 30px; height: 19px; vertical-align: -3px; margin-right: 8px; overflow: visible; }
/* Words as Sky dots. */
.dt-dw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.dt-w { display: inline-flex; gap: 3px; }
.dt-w i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
/* An Ember tick on a next step. */
.dt-tick { display: block; flex: none; width: 20px; height: 20px; color: var(--ember); }
/* A count of what goes as a label, and a label itself: lilac, with Plum words. */
.rd-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lilac); color: var(--plum); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.rd-label { display: inline-block; padding: 0 3px; border-radius: 6px; background: var(--lilac); color: var(--plum); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- controls */
/* A two-way (or more) switch: native radios in a row of pills. The picked one is Navy with
   Cream words; the rest stay quiet. The radio itself is hidden but keeps the focus. */
.dt-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper); min-inline-size: 0; }
.dt-seg label { position: relative; display: inline-flex; cursor: pointer; }
.dt-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dt-seg label > span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; line-height: 1.2; font-weight: 700; color: var(--ink); transition: background-color 0.15s ease, color 0.15s ease; }
.dt-seg label:hover > span { background: var(--haze); }
.dt-seg input:checked + span { background: var(--navy); color: var(--cream); }
.dt-seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* A switch: a track with its knob, Navy when on. On a <button role="switch"> (aria-checked)
   or on a label around a checkbox. */
.dt-switch-track { position: relative; display: inline-block; flex: none; width: 42px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background-color 0.15s ease; }
.dt-switch-track i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 25%, transparent); transition: translate 0.15s ease; }
[aria-checked="true"] > .dt-switch-track, input:checked + .dt-switch-track { background: var(--navy); }
[aria-checked="true"] > .dt-switch-track i, input:checked + .dt-switch-track i { translate: 16px 0; }

/* A button as Murmur draws its own: blue acts. Real when the page's script makes it one
   (data-btn), a drawing until then. Its socket, at its end, holds a press's station. */
.dt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: max(44px, calc(52 * var(--u))); padding: 0 22px; border: 0; border-radius: 14px; background: var(--blue); color: var(--cream); font-size: 16px; line-height: 1; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color 0.12s ease; }
button.dt-btn { cursor: pointer; }
button.dt-btn:hover, .dt-btn.is-pressed { background: var(--navy); }
.dt-btn:has(.dt-sock) { padding-right: max(5px, calc(8 * var(--u))); }
.dt-btn-2 { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
button.dt-btn-2:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dt-btn-danger { background: var(--danger); }
button.dt-btn-danger:hover { background: color-mix(in srgb, var(--danger) 78%, var(--ink)); }
.dt-sock { position: relative; display: inline-grid; place-items: center; flex: none; width: calc(var(--dot) + max(8px, calc(10 * var(--u)))); aspect-ratio: 1; border-radius: 50%; background: var(--navy); }
.dt-sock .station { position: relative; z-index: 1; display: block; width: var(--dot); height: var(--dot); border-radius: 50%; }
.thread-on .dt-sock { background: transparent; transition: background-color 0.2s ease; }
.thread-on .dt-sock:has(.station[data-arrived]) { background: var(--navy); }

/* A quiet more-link that is a button (start a demo over): no button chrome. */
button.more-link { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }

/* Shown or hidden by the page's script; with no script these stay as the HTML draws them. */
[hidden] { display: none !important; }

@media (max-width: 1023.98px) {
  .dt-screen { --dot: calc(12.8 * min(1.25px, 100vw / 390)); }
  .dt-board { padding: 64px var(--m) 72px; }
  .dt-mid { margin-top: 14px; }
  .dt-small { margin-top: 12px; font-size: 15px; }
  .dt-play { display: block; margin-top: 32px; }
  .dt-aside { margin-top: 44px; }
  .dt-qa dt { font-size: 16px; }
  .dt-qa dd { font-size: 15px; }
  .dt-seg label > span { min-height: 40px; padding: 0 12px; font-size: 14.5px; }
  .dt-btn { height: 44px; padding: 0 16px; font-size: 15px; }
  .dt-sock { width: calc(var(--dot) + 12px); }
}
