/* The trade pages and guides (D139). Loaded after /waitlist/app.css, whose tokens, type, navigation
   and footer they reuse. Reading width stays near 70 characters; surfaces over rules. */
.nav { margin-bottom: 0; }
.pg { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); display: grid; gap: 28px; }
.pg > * { max-width: 46rem; }
.pg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8235rem; color: var(--ink3); }
.pg-crumbs li + li::before { content: "›"; padding: 0 8px; color: var(--sep); }
.pg-crumbs a { color: var(--ink2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.pg-crumbs li[aria-current] { display: inline-flex; min-height: 44px; align-items: center; }
.pg-head { display: grid; gap: 12px; }
.pg-eyebrow { margin: 0; font-size: .8235rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.pg h1 { margin: 0; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.pg-lede { margin: 0; font-size: 1.1765rem; line-height: 1.5; color: var(--ink2); }
.pg-date { margin: 0; font-size: .8235rem; color: var(--ink3); }
.pg-sec { display: grid; gap: 12px; }
.pg-sec h2 { margin: 12px 0 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.pg-sec p, .pg-sec li { margin: 0; font-size: 1.0588rem; line-height: 1.6; color: var(--ink2); }
.pg-sec b { color: var(--ink); }
.pg-sec ul, .pg-sec ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.pg a { color: var(--acc); text-underline-offset: 3px; }
.pg-template { background: var(--surface); border-radius: 20px; box-shadow: var(--sh1); padding: 20px 24px; display: grid; gap: 8px; }
.pg-template-h { font-size: .8235rem !important; font-weight: 700; color: var(--ink3) !important; text-transform: uppercase; letter-spacing: .05em; }
.pg-template p:last-child { color: var(--ink) !important; }
.pg-faq details { background: var(--surface); border-radius: 20px; box-shadow: var(--sh1); }
.pg-faq summary { list-style: none; cursor: pointer; min-height: 60px; padding: 16px 56px 16px 24px; font-weight: 600; position: relative; display: flex; align-items: center; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4118rem; font-weight: 400; color: var(--ink3); transition: transform .2s; }
.pg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pg-faq details p { padding: 0 24px 24px; }
@media (prefers-reduced-motion: reduce) { .pg-faq summary::after { transition: none; } }
.pg-cta { background: var(--surface); border-radius: 28px; box-shadow: var(--sh2); padding: 28px clamp(20px, 4vw, 36px); display: grid; gap: 12px; }
.pg-cta h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.03em; }
.pg-cta p { margin: 0; color: var(--ink2); line-height: 1.55; }
.pg-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pg .pg-go { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700; }
.pg .pg-go:focus-visible, .pg a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pg-terms { display: inline-flex; min-height: 44px; align-items: center; }
.pg-related h2, .pg-sources h2 { margin: 0 0 8px; font-size: 1.0588rem; letter-spacing: -0.02em; }
.pg-related ul { list-style: none; margin: 0; padding: 0; }
.pg-related a { display: flex; align-items: center; min-height: 44px; }
.pg-note { margin: 0; font-size: .8824rem; color: var(--ink3); line-height: 1.5; }
.pg-sources ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .8824rem; color: var(--ink3); }
.pg-sources a { display: inline-block; padding-block: 4px; word-break: break-word; }
.pg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; max-width: none !important; }
.pg-cards a { height: 100%; box-sizing: border-box; display: grid; gap: 6px; padding: 20px 22px; background: var(--surface); border-radius: 20px; box-shadow: var(--sh1); text-decoration: none; color: var(--ink); }
.pg-cards b { font-size: 1.0588rem; letter-spacing: -0.02em; }
.pg-cards span { color: var(--ink2); font-size: .9412rem; line-height: 1.45; }
@media (hover: hover) { .pg-cards a:hover b { text-decoration: underline; text-underline-offset: 3px; } }

/* Sections are content blocks here, not the landing page's full-height bands. */
.pg-sec, .pg-sources { padding-block: 0; }
.pg-sec { scroll-margin-top: 112px; }

/* Guides, read like Apple's support articles (founder, 2026-10-19: "take a look at support.apple.com"):
   a white page, one centered column near 70 characters, a large semibold title with a one-line
   summary, body text at 17-18 px in near-black, big quiet section headings, and notes in a soft
   grey box. The sections are listed in that grey box at the top, not in a sidebar. */
body:has(.pg-guide) { background: var(--surface); }
.pg-guide { gap: 32px; }
.pg-guide > *, .pg-guide .pg-layout { max-width: 52rem; margin-inline: auto; width: 100%; }
/* Text keeps a line near 70 characters inside the wider column the pictures need. */
.pg-guide .pg-head > *, .pg-guide .pg-sec:not(.has-fig) > *, .pg-sec-text > *, .pg-guide .pg-toc, .pg-guide .pg-cta,
.pg-guide .pg-note, .pg-guide .pg-related, .pg-guide .pg-sources { max-width: 42rem; }
.pg-guide .pg-eyebrow { display: none; }
.pg-guide .pg-head { gap: 14px; }
.pg-guide h1 { font-size: clamp(2.125rem, 4.6vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.pg-guide .pg-lede { font-size: clamp(1.1765rem, 2vw, 1.3125rem); line-height: 1.4; color: var(--ink); }
.pg-guide .pg-date { color: var(--ink3); }
.pg-layout { display: grid; gap: 48px; }
.pg-body { display: grid; gap: 56px; min-width: 0; }
.pg-guide .pg-sec { gap: 16px; }
.pg-guide .pg-sec h2 { margin: 0; font-size: clamp(1.625rem, 3.2vw, 2.125rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.pg-guide .pg-sec p, .pg-guide .pg-sec li { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
@media (min-width: 760px) { .pg-guide .pg-sec p, .pg-guide .pg-sec li { font-size: 1.125rem; } }
.pg-guide .pg-sec ul, .pg-guide .pg-sec ol { gap: 10px; padding-left: 1.4em; }
.pg-guide .pg-template, .pg-toc, .pg-guide .pg-cta { background: var(--ground); box-shadow: none; border-radius: 18px; padding: clamp(20px, 3.5vw, 32px); }
.pg-guide .pg-template p:last-child { font-size: 1.0625rem; line-height: 1.6; }
.pg-toc-h { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.pg-toc ol { margin: 0; padding: 0; list-style: none; display: grid; }
.pg-toc a { display: inline-flex; align-items: center; min-height: 40px; color: var(--acc); text-decoration: none; line-height: 1.35; }
.pg-toc a::after { content: "\203A"; margin-left: 6px; }
@media (hover: hover) { .pg-toc a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.pg-guide .pg-faq details { background: var(--ground); box-shadow: none; border-radius: 18px; }

/* Pictures in the guides, as in Apple's user guides: a phone screen beside its section, alternating
   sides on a wide screen, under the text on a phone. Drawn with the site's own phone components. */
.pg-sec.has-fig { display: grid; gap: 28px; }
.pg-sec-text { display: grid; gap: 16px; min-width: 0; }
.pg-fig { margin: 0; justify-self: center; }
@media (min-width: 900px) {
  .pg-sec.has-fig { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; }
  .pg-sec.has-fig.fig-left { grid-template-columns: auto minmax(0, 1fr); }
  .pg-sec.has-fig.fig-left .pg-fig { order: -1; }
}
/* The top of the screen, large enough to read, fading out below like a cropped screenshot. */
.pg-dev { --s: .9; position: relative; width: calc(330px * var(--s)); height: 440px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.pg-fig .btn { position: static; margin-top: calc(8 * var(--pt)); }
.pg-dev > .device { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: top left; box-shadow: var(--sh2); }
.pg-fig .pg-day { flex: none; width: calc(46 * var(--pt)); display: grid; justify-items: center; padding-block: calc(4 * var(--pt)); border-radius: calc(10 * var(--pt)); background: var(--fill); }
.pg-fig .pg-day small { font-size: var(--cap); font-weight: 600; text-transform: uppercase; color: var(--acc); }
.pg-fig .pg-day b { font-size: calc(20 * var(--pt)); line-height: 1.1; }
.pg-fig .pg-fig-note { font-size: var(--cap); line-height: 1.35; color: var(--ink3); padding: 0 calc(4 * var(--pt)); }
.pg-fig .pg-bubble { align-self: flex-end; max-width: 84%; margin-top: calc(14 * var(--pt)); padding: calc(10 * var(--pt)) calc(12 * var(--pt)); border-radius: calc(18 * var(--pt)) calc(18 * var(--pt)) calc(4 * var(--pt)) calc(18 * var(--pt)); background: var(--acc); color: var(--ground); font-size: calc(15 * var(--pt)); line-height: 1.35; }
.pg-fig .navbar b { font-size: calc(17 * var(--pt)); }
.pg-fig .back { display: grid; place-items: center; width: calc(28 * var(--pt)); height: calc(44 * var(--pt)); color: var(--acc); }
.pg-fig .back svg { width: calc(11 * var(--pt)); height: calc(19 * var(--pt)); }
.pg-fig .li .grow > span { display: block; }
