/* The Help center (setup/): the topic tree on the left of every page, beside the page's
   own column: the front page (a search, Most asked, the collections as cards), a
   collection (its sections and their articles), or an article (with "On this page" on
   a wide window). Text on cream is Body; headings and terms are Ink. No orange anywhere:
   the Help center has no travelling dot, and a label OpenAI reads is lilac with plum words.
   Below 1024 the tree follows the page instead of standing beside it. */

/* ---------------------------------------------------------------- the frame */
.hc { display: grid; grid-template-columns: 296px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; padding-left: var(--m); }
.hc-side { border-right: 1px solid var(--line); }
.hc-main { min-width: 0; padding: calc(56 * var(--u)) var(--m) calc(104 * var(--u)) calc(72 * var(--u)); }
.hc-main > * { max-width: 960px; }
.help-rim { margin-top: 0; }

/* ---------------------------------------------------------------- the topic tree */
.tt { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; padding: 40px 20px 48px 0; scrollbar-width: thin; }
.tt-h { margin: 0 0 14px 10px; font-size: var(--fs-label); line-height: 1.2; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tt-h a { color: inherit; text-decoration: none; }
.tt-h a:hover { color: var(--ink); }
.tt ul { list-style: none; }
.tt summary { list-style: none; cursor: pointer; }
.tt summary::-webkit-details-marker { display: none; }
.tt-c > summary, .tt-s > summary, .tt-write { display: flex; align-items: center; gap: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color 0.12s ease; }
.tt-c > summary { min-height: 44px; padding: 8px 10px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.tt-c > summary:hover, .tt-s > summary:hover, .tt-write:hover { background: var(--haze); }
.tt-c > summary > span, .tt-s > summary > span { flex: 1 1 auto; min-width: 0; }
.hc-ico { flex: none; width: 22px; height: 22px; color: var(--ink); }
.tt-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: rotate 0.15s ease; }
details[open] > summary > .tt-chev { rotate: 90deg; }
/* A collection's inside: its "All of" link and its sections, on a quiet rule. */
.tt-in { margin: 2px 0 10px 21px; padding-left: 12px; border-left: 1px solid var(--line); }
.tt-s > summary { min-height: 38px; padding: 6px 10px; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.tt-a { margin: 0 0 6px 10px; }
.tt-all a, .tt-a a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 15px; line-height: 1.35; color: var(--body); text-decoration: none; }
.tt-all a { font-weight: 600; color: var(--muted); }
.tt-all a:hover, .tt-a a:hover { background: var(--haze); color: var(--ink); }
.tt a[aria-current="page"] { background: var(--mist); color: var(--ink); font-weight: 700; }
.tt-write { margin-top: 14px; min-height: 44px; padding: 8px 10px; font-size: 16px; font-weight: 700; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 18px; }
.tt-write[aria-current="page"] { background: transparent; }

/* ---------------------------------------------------------------- the bar: the trail, then search */
.hc-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: calc(40 * var(--u)); }
.trail ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: 15px; line-height: 1.4; }
.trail li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 10px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; rotate: 45deg; }
.trail a { color: var(--body); text-decoration: none; }
.trail a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- search */
.hs { position: relative; }
.hs[hidden] { display: none; }
.hs-box { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow 0.12s ease; }
.hs-box:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.hs-ico { flex: none; width: 20px; height: 20px; color: var(--muted); }
.hs-q { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.hs-q::placeholder { color: var(--muted); }
.hs-q::-webkit-search-cancel-button { display: none; }
.hs-kbd { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hs-small { width: min(340px, 100%); flex: none; }
.hs-big { max-width: 560px; margin-top: calc(36 * var(--u)); }
.hs-big .hs-box { height: 58px; padding: 0 14px 0 20px; border-radius: 14px; }
.hs-big .hs-q { font-size: 18px; }
/* The answers, under the field. */
.hs-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; list-style: none; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px color-mix(in srgb, var(--ink) 28%, transparent); }
.hs-small .hs-list { left: auto; width: min(440px, calc(100vw - 2 * var(--m))); }
.hs-list[hidden] { display: none; }
.hs-list a, .hs-none { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hs-list a[aria-selected="true"], .hs-list a:hover { background: var(--haze); }
.hs-t { display: block; font-size: 15.5px; line-height: 1.35; font-weight: 700; }
.hs-w { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.hs-none { font-size: 15px; color: var(--body); }
.hs-none a { display: inline; padding: 0; color: var(--blue); text-decoration: underline; }

/* ---------------------------------------------------------------- lists of articles */
/* A row: the article's name (and on a collection page its first line), the article mark. */
.ars { list-style: none; border-top: 1px solid var(--line); }
.ars li { border-bottom: 1px solid var(--line); }
.ar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 13px 4px; color: var(--ink); text-decoration: none; }
.ar-t { display: flex; flex-direction: column; gap: 3px; }
.ar-name { font-size: 17px; line-height: 1.35; font-weight: 700; }
.ar-line { font-size: 15px; line-height: 1.45; color: var(--body); text-wrap: pretty; }
.ar-ico { flex: none; width: 22px; height: 22px; color: var(--muted); }
.ar:hover .ar-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ar:hover .ar-ico { color: var(--ink); }

/* ---------------------------------------------------------------- the front page */
.hp-head { padding-top: calc(24 * var(--u)); }
.hp-h { margin-top: 14px; max-width: 13em; font-size: var(--fs-m); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.hp-soon { margin-top: 16px; font-size: var(--fs-fine); font-weight: 600; color: var(--muted); }
.hp-asked { margin-top: calc(72 * var(--u)); }
.hp-asked .label, .ap-more .label { margin-bottom: 12px; }
.hp-topics { margin-top: calc(88 * var(--u)); }
.hp-h2 { font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
/* The collections as cards: the mark on its own band, then the name, the line and the count. */
.ccs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; list-style: none; }
.cc { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-card); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow 0.15s ease, translate 0.15s ease; }
.cc:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cc-top { display: block; padding: 24px 24px 20px; border-bottom: 1px solid var(--line); }
.cc-ico { display: block; width: 28px; height: 28px; color: var(--ink); }
.cc-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 20px 24px 22px; }
.cc-name { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
.cc-blurb { font-size: 15px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.cc-n { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* ---------------------------------------------------------------- a collection */
.hc-title { font-size: var(--fs-statement); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.cp-head { max-width: 760px; }
.cp-ico { display: block; width: 36px; height: 36px; margin-bottom: 18px; color: var(--ink); }
.cp-head .lead { margin-top: 14px; }
.cp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.cp-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.cp-jump a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cp-s { margin-top: calc(64 * var(--u)); scroll-margin-top: 24px; }
.cp-s-h { margin-bottom: 14px; font-size: var(--fs-beat); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

/* ---------------------------------------------------------------- an article */
/* The article, and on a wide window "On this page" beside it. */
.ap { display: grid; grid-template-columns: minmax(0, 760px); column-gap: 56px; }
.hc-wide .ap { grid-template-columns: minmax(0, 760px) 220px; }
.ap-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ap-head .hc-title { max-width: 18em; }
.help-art .ap-date { margin-top: 12px; font-size: var(--fs-fine); color: var(--muted); }
.otp { position: sticky; top: 32px; align-self: start; padding-left: 16px; border-left: 1px solid var(--line); }
.otp-h { font-size: 14px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.otp ol { margin-top: 10px; list-style: none; }
.otp a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.otp a:hover, .otp a[aria-current="true"] { color: var(--ink); }
.otp a[aria-current="true"] { font-weight: 700; }
.ap-more { margin-top: calc(80 * var(--u)); max-width: 760px; }

/* ---------------------------------------------------------------- still stuck */
.stuck { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 12px; max-width: 760px; margin-top: calc(80 * var(--u)); padding: 24px 28px; border-radius: var(--radius-card); background: var(--haze); }
.stuck-h { flex: 0 0 100%; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.stuck p { flex: 1 1 22em; margin: 0; color: var(--body); }
.stuck .btn { flex: none; }

/* ---------------------------------------------------------------- the phone and tablet */
@media (max-width: 1279.98px) {
  .hc-wide .ap { grid-template-columns: minmax(0, 760px); }
  .otp { display: none; }
  .ccs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .hc { display: flex; flex-direction: column-reverse; padding-left: 0; }
  .hc-main { padding: 28px var(--m) 48px; }
  .hc-side { border-right: 0; border-top: 1px solid var(--line); padding: 0 var(--m); }
  .tt { position: static; max-height: none; overflow: visible; padding: 28px 0 40px; }
  .tt-h { margin-left: 0; }
  /* The front page's cards already show every collection. */
  .hc-home .hc-side { display: none; }
  .hc-bar { flex-direction: column-reverse; align-items: stretch; gap: 16px; margin-bottom: 24px; }
  .hs-small { width: 100%; }
  .hs-small .hs-list { left: 0; width: auto; }
  .hs-kbd { display: none; }
  .hp-head { padding-top: 0; }
  .hp-asked { margin-top: 40px; }
  .hp-topics { margin-top: 48px; }
  .ar { min-height: 48px; padding: 12px 2px; }
  .cp-s { margin-top: 40px; }
  .ap-more, .stuck { margin-top: 48px; }
  .stuck { padding: 20px; }
}
@media (max-width: 639.98px) {
  .ccs { grid-template-columns: 1fr; gap: 12px; }
  .cc { flex-direction: row; }
  .cc-top { display: flex; align-items: flex-start; padding: 20px 0 0 18px; border-bottom: 0; }
  .cc-body { padding: 18px 18px 18px 14px; gap: 4px; }
  .cc-name { font-size: 18px; }
  .stuck .btn { width: 100%; }
}

/* ---------------------------------------------------------------- articles */
/* A path with no space in it, like ~/Library/Preferences/…plist, breaks where it must
   rather than push a phone's page sideways. Ordinary words are never split. */
.help-art { overflow-wrap: break-word; }
.help-art h3[id] { scroll-margin-top: 32px; }
.help-art p, .help-art li, .rows dd { color: var(--body); }
.help-art p { margin-top: 16px; max-width: 38em; text-wrap: pretty; }
.ap-head + p { margin-top: 28px; }
.ap-head + h3 { margin-top: 28px; }
.help-art h3 { margin-top: 44px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.help-art h3 + p, .help-art h3 + ul, .help-art h3 + ol, .help-art h3 + .rows { margin-top: 10px; }
.help-art .help-more { margin-top: 12px; }
.help-links { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 8px; }

/* A label OpenAI reads in place of a name: lilac, plum words, never orange. */
.tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--lilac); color: var(--plum); font-size: 0.94em; line-height: 1.45; font-weight: 700; white-space: nowrap; }

/* Lists: one Sky dot per point (words are dots). */
.dots { list-style: none; }
.dots li { position: relative; max-width: 38em; margin-top: 10px; padding-left: 26px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: calc(0.775em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

/* Steps: each one opens on a numbered ring, the questions' plus ring with a count in it. */
.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; max-width: 38em; margin-top: 14px; padding-left: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: calc(0.775em - 14px); display: grid; place-items: center; width: 28px; height: 28px; padding-top: 2px; border: 2px solid var(--ink); border-radius: 50%; font-size: 14px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.steps + p { margin-top: 20px; }

/* Where your words go: four places, each with its mark on a ground line, then its rows.
   The same rows serve every term-and-answer list on the page. */
.place { margin-top: 56px; }
.help-art .place-h { display: flex; align-items: flex-end; gap: 14px; margin-top: 0; font-size: var(--fs-beat); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.place-mark { flex: 0 0 auto; width: 48px; height: 32px; }
.place > p { margin-top: 12px; }
.rows { margin-top: 16px; border-bottom: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows dt { font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.rows dd { font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.rows + p { margin-top: 20px; }

/* ---------------------------------------------------------------- What OpenAI reads, tried on a note
   The sample note (the app's own Launch sync), its answer back on your machine, and the
   short answers beside it. The HTML shows both readings; js/help.js makes it a switch. */
.reads-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 236px; column-gap: 36px; align-items: start; margin-top: 36px; }
.reads { margin: 0; }
.reads > .label { margin-bottom: 12px; }

/* The switch: the app's two readings, the one shown pressed in ink. */
.reads-switch { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.reads-switch[hidden] { display: none; }
.reads-switch button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 700; color: var(--body); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.reads-switch button:hover { color: var(--ink); }
.reads-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.reads-note { padding: 20px 22px 22px; border-radius: var(--radius-card); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.help-art .reads-title { margin-top: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.reads-title span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.reads-pane { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.reads-pane[hidden] { display: none; }
.help-art .reads-h { margin-top: 0; font-size: var(--fs-label); line-height: 1.2; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* With the switch, the button says which reading shows; its name stays for screen readers. */
.is-live .reads-h { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-live .reads-pane { margin-top: 14px; }
.help-art .reads-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--lilac); font-size: 14px; font-weight: 700; color: var(--plum); }
.is-live .reads-band { margin-top: 0; }
.reads-chip { padding: 1px 8px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 700; color: var(--plum); }
/* The band's quiet second half, as the app draws it: the rest goes as said. */
.reads-any { font-weight: 600; }
.turns { list-style: none; margin-top: 4px; }
.turns li { margin-top: 12px; }
.help-art .turn-who { margin-top: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.turn-at { margin-left: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.help-art .turn-words { margin-top: 2px; font-size: 16px; color: var(--body); }

/* The answer, back on your machine with the names in it. */
.reads-back { margin-top: 14px; padding: 16px 22px 18px; border-radius: var(--radius-card); background: var(--haze); }
.help-art .reads-kicker { margin-top: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.reads-back .dots li { margin-top: 6px; color: var(--ink); font-weight: 600; }
.help-art .reads-went { margin-top: 12px; font-size: var(--fs-fine); line-height: 1.55; color: var(--muted); }

/* The short answers on the side. */
.reads-qa { padding-top: 34px; }
.reads-qa dl > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.reads-qa dt { font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.reads-qa dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

/* Write to us: the line and the action, and beside them someone on a lilac dome with a
   reply on its way, standing on the button's foot. */
.help-support { display: grid; grid-template-columns: 1fr 240px; column-gap: 32px; align-items: end; }
.help-support > .ap-head { grid-column: 1 / -1; }
.support-copy p { margin-top: 24px; }
.support-copy p + p { margin-top: 12px; }
.support-copy .btn { margin-top: 28px; }
.answerer { grid-column: 2; width: 100%; height: auto; overflow: visible; }

@media (max-width: 1023.98px) {
  .help-art h3[id] { scroll-margin-top: 16px; }
  .ap-head + p, .ap-head + h3 { margin-top: 18px; }
  .help-art h3 { margin-top: 36px; font-size: 19px; }
  .place { margin-top: 44px; }
  .rows > div { grid-template-columns: 1fr; row-gap: 4px; padding: 12px 0; }
  .reads-wrap { display: block; margin-top: 28px; }
  .reads-switch { display: flex; width: 100%; }
  .reads-switch button { flex: 1 1 0; padding: 0 10px; font-size: 14px; }
  .reads-note { padding: 18px 18px 20px; }
  .reads-back { padding: 16px 18px 18px; }
  .reads-qa { padding-top: 28px; }
  .help-support { display: block; }
  .support-copy p { margin-top: 18px; }
  .support-copy .btn { width: 100%; max-width: 420px; }
  .answerer { width: 200px; margin: 28px auto 0; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* A flip to OpenAI's reading: the labels settle in where the names were. */
.motion .is-live .reads-pane:not([hidden]) .tag { animation: tag-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes tag-in { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
