/* PixelSpot Newsroom article, apple.com style (29 Sep 2026).
   Used by blog-post.html and every pre-rendered blog/<slug>.html (scratch/build-static-blog-posts.py).
   Everything is scoped under .psa so the site-wide sheets and blog.css cannot leak in.
   Components written in blog-src/<slug>.json: psa-lede, psa-short, psa-stats, psa-quote, psa-table, psa-note,
   psa-steps, psa-check, psa-fig, psa-band, psa-tiles (see scripts/blog-rewrite/BRIEF.md). */
.psa {
  --psa-ink: #1d1d1f; --psa-grey: #6e6e73; --psa-line: #d2d2d7; --psa-soft: #f5f5f7; --psa-link: #0066cc;
  --psa-grad: linear-gradient(90deg, #0a84ff 0%, #5e5ce6 52%, #bf5af2 100%);
  --psa-col: 692px; --psa-wide: 980px;
  background: #fff; color: var(--psa-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.psa *, .psa *::before, .psa *::after { box-sizing: border-box; }

/* ── header ─────────────────────────────────────────── */
.psa-head { max-width: calc(var(--psa-wide) + 44px); margin: 0 auto; padding: calc(var(--nav-height, 52px) + 64px) 22px 0; }
.psa-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--psa-link); text-decoration: none; }
.psa-back::before { content: "\2039"; font-size: 20px; line-height: 1; transform: translateY(-1px); }
.psa-back:hover { text-decoration: underline; }
.psa-eyebrow { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--psa-grey); }
.psa-cat { color: var(--psa-ink); }
.psa-title { margin: 12px 0 0; max-width: 900px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; font-weight: 700;
  letter-spacing: -.025em; color: var(--psa-ink); text-wrap: balance; }
.psa-dek { margin: 20px 0 0; max-width: 780px; font-size: clamp(19px, 2vw, 24px); line-height: 1.38; font-weight: 500;
  letter-spacing: -.01em; color: var(--psa-grey); text-wrap: pretty; }
.psa-dek:empty { display: none; }
.psa-meta { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--psa-line); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--psa-grey); }
.psa-meta-l { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.psa-meta-l strong { color: var(--psa-ink); font-weight: 600; }
.psa-share { display: flex; gap: 10px; }
.psa-share a { width: 36px; height: 36px; border-radius: 50%; background: var(--psa-soft); color: var(--psa-ink);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px;
  transition: background .2s ease; }
.psa-share a:hover { background: #e8e8ed; }
.psa .psa-share a[id] { background: var(--psa-soft) !important; color: var(--psa-ink) !important; border: 0 !important; box-shadow: none !important; }   /* blog.css paints #shareX brand colours */
.psa .psa-share a[id]:hover { background: #e8e8ed !important; color: var(--psa-ink) !important; }
.psa-share svg { width: 16px; height: 16px; fill: currentColor; }

/* ── hero image ─────────────────────────────────────── */
.psa-hero { max-width: calc(1180px + 44px); margin: 40px auto 0; padding: 0 22px; }
.psa-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; background: var(--psa-soft); }
.psa-hero figcaption { margin: 12px auto 0; max-width: var(--psa-wide); font-size: 13px; line-height: 1.4; color: var(--psa-grey); }
.psa-hero figcaption:empty { display: none; }
.psa-hero.is-empty { display: none; }
.psa-hero--fit img { width: auto; max-width: 100%; max-height: min(78vh, 760px); aspect-ratio: auto; margin: 0 auto; object-fit: contain; }
.psa-hero--fit figcaption { text-align: center; }

/* ── body column ────────────────────────────────────── */
.psa-body { max-width: calc(var(--psa-col) + 44px); margin: 72px auto 0; padding: 0 22px; font-size: 19px; line-height: 1.58;
  letter-spacing: -.003em; color: var(--psa-ink); }
.psa-body p { margin: 0 0 1.05em; font-size: inherit; line-height: inherit; }   /* mobile.css sizes every <p> */
.psa-body a { color: var(--psa-link); text-decoration: none; }
.psa-body a:hover { text-decoration: underline; }
.psa-body strong { font-weight: 600; }
.psa-body > p:first-child, .psa-body .psa-lede { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.42; font-weight: 500;
  letter-spacing: -.012em; margin-bottom: 1.1em; }
.psa-body h2 { margin: 2.1em 0 .55em; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em;
  text-wrap: balance; scroll-margin-top: 90px; }
.psa-body h3 { margin: 1.7em 0 .4em; font-size: 22px; line-height: 1.27; font-weight: 600; letter-spacing: -.012em; }
.psa-body ul, .psa-body ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.psa-body li { margin: 0 0 .5em; padding-left: .2em; }
.psa-body li::marker { color: var(--psa-grey); }
.psa-body img { max-width: 100%; height: auto; }
.psa-body > table { display: block; overflow-x: auto; }
.psa-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.psa-body th, .psa-body td { padding: 14px 14px 14px 0; border-top: 1px solid var(--psa-line); text-align: left; vertical-align: top; }
.psa-body thead th { border-top: 0; padding-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--psa-grey); }
.psa-body blockquote { margin: 1.6em 0; padding: 0; border: 0; }

/* breakout: wider than the text column but never wider than the screen */
.psa-body .psa-stats, .psa-body .psa-table, .psa-body .psa-fig, .psa-body .psa-tiles {
  width: min(var(--psa-wide), calc(100vw - 44px)); margin-left: 50%; transform: translateX(-50%); }
.psa-body .psa-band { width: min(1180px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }

/* the short version */
.psa-short { margin: 44px 0 8px; padding: 30px 34px 22px; background: var(--psa-soft); border-radius: 26px; }
.psa-body .psa-short h2 { margin: 0 0 16px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--psa-grey); }
.psa-short ul { list-style: none; margin: 0; padding: 0; }
.psa-short li { position: relative; margin: 0 0 14px; padding-left: 30px; font-size: 18px; line-height: 1.45; }
.psa-short li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--psa-grad); }

/* big numbers */
.psa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 56px; margin-bottom: 56px; }
.psa-stat { background: var(--psa-soft); border-radius: 26px; padding: 34px 30px 30px; container-type: inline-size; }
.psa-stat strong { display: block; font-size: clamp(30px, 3.6vw, 52px); font-size: min(60px, 19cqi); white-space: nowrap; line-height: 1; font-weight: 700; letter-spacing: -.035em;
  background: var(--psa-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.psa-stat--long strong { font-size: min(52px, 14cqi); }
.psa-stat--xlong strong { font-size: min(44px, 11.5cqi); }
.psa-stat span { display: block; margin-top: 14px; font-size: 16px; line-height: 1.4; color: var(--psa-grey); }

/* pull quote */
.psa-body .psa-quote { margin: 64px 0; }
.psa-quote p { margin: 0; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.022em; color: var(--psa-ink); text-wrap: balance; }
.psa-quote p::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 22px; border-radius: 2px; background: var(--psa-grad); }
.psa-quote cite { display: block; margin-top: 16px; font-size: 15px; font-style: normal; font-weight: 500; color: var(--psa-grey); }

/* compare table */
.psa-table { margin-top: 44px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 22px;
  border: 1px solid var(--psa-line); padding: 26px 28px 10px; }
.psa-table table { min-width: 560px; }
.psa-table tbody tr:first-child th, .psa-table tbody tr:first-child td { border-top-color: var(--psa-line); }
.psa-table td:first-child, .psa-table tbody th { font-weight: 600; color: var(--psa-ink); }
.psa-body .psa-table-note { margin: 0 0 44px; font-size: 14px; line-height: 1.45; color: var(--psa-grey); }

/* callout */
.psa-note { margin: 36px 0; padding: 22px 26px; border-radius: 20px; background: #f2f7fe; font-size: 17px; line-height: 1.5; }
.psa-note strong:first-child { color: #0058b9; }

/* numbered steps */
.psa-steps { list-style: none; counter-reset: psa-step; margin: 32px 0 36px !important; padding: 0 !important; }
.psa-steps li { counter-increment: psa-step; position: relative; margin: 0 0 26px; padding: 2px 0 0 68px; min-height: 48px; }
.psa-steps li::before { content: counter(psa-step); position: absolute; left: 0; top: -6px; width: 48px; text-align: center;
  font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.04em; background: var(--psa-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.psa-steps li strong:first-child { display: block; margin-bottom: 2px; }

/* checklist */
.psa-check { list-style: none; margin: 24px 0 32px !important; padding: 0 !important; }
.psa-check li { position: relative; margin: 0 0 14px; padding-left: 36px; }
.psa-check li::before { content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: #1d1d1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* inline photo */
.psa-fig { margin-top: 56px; margin-bottom: 56px; }
.psa-fig img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--psa-soft); }
.psa-fig figcaption { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--psa-grey); }

/* dark statement band */
.psa-band { margin-top: 80px; margin-bottom: 80px; padding: clamp(60px, 9vw, 120px) clamp(26px, 7vw, 100px); border-radius: 32px;
  background: #000; color: #f5f5f7; text-align: center; }
.psa-body .psa-band p { margin: 0; }
.psa-band .psa-band-kicker { font-size: 17px; font-weight: 600; letter-spacing: .01em; background: var(--psa-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.psa-band .psa-band-line { margin-top: 12px !important; font-size: clamp(36px, 6vw, 76px); line-height: 1.04; font-weight: 700;
  letter-spacing: -.035em; color: #f5f5f7; text-wrap: balance; }
.psa-band .psa-band-sub { max-width: 640px; margin: 22px auto 0 !important; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: #a1a1a6; }

/* link tiles */
.psa-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; margin-bottom: 44px; }
.psa-body a.psa-tile { display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 24px; background: var(--psa-soft);
  color: var(--psa-ink); text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.psa-body a.psa-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.08); text-decoration: none; }
.psa-tile-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--psa-grey); }
.psa-tile-t { margin-top: 8px; font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -.018em; }
.psa-tile-s { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--psa-grey); }
.psa-tile-s::after { content: " \203A"; color: var(--psa-link); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────── */
.psa-faq { max-width: calc(var(--psa-col) + 44px); margin: 96px auto 0; padding: 0 22px; }
.psa-faq h2 { margin: 0 0 24px; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.psa-faq details { border-top: 1px solid var(--psa-line); }
.psa-faq details:last-of-type { border-bottom: 1px solid var(--psa-line); }
.psa-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.psa-faq summary::-webkit-details-marker { display: none; }
.psa-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 28px; font-weight: 300; line-height: 1; color: var(--psa-grey); transition: transform .25s ease; }
.psa-faq details[open] summary::after { transform: rotate(45deg); }
.psa-faq .psa-faq-a { padding: 0 0 24px; font-size: 17px; line-height: 1.55; color: #424245; }
.psa-faq .psa-faq-a a { color: var(--psa-link); }

/* ── closing CTA ────────────────────────────────────── */
.psa-cta { max-width: calc(var(--psa-wide) + 44px); margin: 96px auto 0; padding: 0 22px; }
.psa-cta-in { border-radius: 32px; background: var(--psa-soft); padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 72px); text-align: center; }
.psa-cta h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.psa-cta p { margin: 16px auto 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--psa-grey); }
.psa-cta-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; }
.psa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 980px;
  background: #0071e3; color: #fff !important; font-size: 17px; font-weight: 500; text-decoration: none !important; transition: background .2s ease; }
.psa-btn:hover { background: #0077ed; }
.psa-link { font-size: 17px; color: var(--psa-link) !important; text-decoration: none; }
.psa-link::after { content: " \203A"; }
.psa-link:hover { text-decoration: underline; }
.psa-cta-small { margin-top: 22px !important; font-size: 14px !important; }

/* ── related stories ────────────────────────────────── */
.psa-related { margin: 96px 0 0; padding: 80px 22px 96px; background: var(--psa-soft); }
.psa-related-in { max-width: var(--psa-wide); margin: 0 auto; }
.psa-related h2 { margin: 0 0 28px; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.psa-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.psa-related a { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; color: var(--psa-ink);
  text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.psa-related a:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.psa-related img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8e8ed; }
.psa-rel-body { padding: 18px 22px 24px; }
.psa-rel-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--psa-grey); }
.psa-rel-t { display: block; margin-top: 8px; font-size: 19px; line-height: 1.28; font-weight: 600; letter-spacing: -.012em; }
.psa-rel-d { display: block; margin-top: 10px; font-size: 13px; color: var(--psa-grey); }

/* ── reveal on scroll (only when JS has marked the page) ── */
.psa-js .psa-rv { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.psa-js .psa-body .psa-rv.psa-stats, .psa-js .psa-body .psa-rv.psa-band, .psa-js .psa-body .psa-rv.psa-fig, .psa-js .psa-body .psa-rv.psa-tiles, .psa-js .psa-body .psa-rv.psa-table { transform: translate(-50%, 24px); }
.psa-js .psa-rv.is-in { opacity: 1; transform: none; }
.psa-js .psa-body .psa-rv.is-in.psa-stats, .psa-js .psa-body .psa-rv.is-in.psa-band, .psa-js .psa-body .psa-rv.is-in.psa-fig, .psa-js .psa-body .psa-rv.is-in.psa-tiles, .psa-js .psa-body .psa-rv.is-in.psa-table { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .psa-js .psa-rv { opacity: 1; transform: none; transition: none; } }

/* ── phones ─────────────────────────────────────────── */
@media (max-width: 734px) {
  .psa-head { padding-top: calc(var(--nav-height, 48px) + 36px); padding-left: 16px; padding-right: 16px; }
  .psa-hero { margin-top: 28px; padding: 0 16px; }
  .psa-hero img { border-radius: 20px; aspect-ratio: 4 / 3; }
  .psa-body { margin-top: 44px; padding: 0 16px; font-size: 17px; line-height: 1.55; }
  .psa-body .psa-stats, .psa-body .psa-table, .psa-body .psa-fig, .psa-body .psa-tiles { width: calc(100vw - 32px); }
  .psa-short { padding: 24px 22px 14px; border-radius: 22px; }
  .psa-short li { font-size: 17px; }
  .psa-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .psa-stat { padding: 24px 20px 22px; border-radius: 22px; }
  .psa-stat strong { font-size: 30px; font-size: min(40px, 19cqi); }
  .psa-stat--long strong { font-size: min(36px, 14cqi); }
  .psa-stat--xlong strong { font-size: min(30px, 11.5cqi); }
  .psa-stat span { font-size: 14px; }
  .psa-table { padding: 20px 18px 6px; border-radius: 18px; }
  .psa-table table { font-size: 15px; }
  .psa-band { border-radius: 26px; }
  .psa-steps li { padding-left: 54px; }
  .psa-steps li::before { width: 40px; font-size: 34px; }
  .psa-faq, .psa-cta { padding: 0 16px; margin-top: 72px; }
  .psa-faq summary { font-size: 17px; }
  .psa-related { margin-top: 72px; padding: 56px 16px 72px; }
  .psa-related ul { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .psa-related ul::-webkit-scrollbar { display: none; }
  .psa-related li { flex: 0 0 80%; scroll-snap-align: start; }
}
@media (max-width: 734px) {
  /* mobile.css forces every h2 with !important; keep the article's own scale */
  .psa .psa-short h2 { font-size: 13px !important; line-height: 1.3 !important; letter-spacing: .07em !important; }
  .psa .psa-cta h2 { font-size: 32px !important; line-height: 1.08 !important; }
  .psa .psa-faq .psa-faq-a, .psa .psa-cta p { font-size: 17px; }
  .psa .psa-cta .psa-cta-small { font-size: 14px !important; }
  .psa-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .psa-stats { grid-template-columns: 1fr; } }

/* the old blog.css hero/content rules must not touch the new article */
.psa .blog-post-hero, .psa .blog-post-content { display: none; }
