/* ═══════════════════════════════════════════════════════════════════════════
   NewMac guides: article-only rules. Load after ../assets/style.css.
   Every colour, font, radius and shadow comes from style.css tokens (--text, --muted, --line,
   --card, --sunk, --code-bg, --denim, --thread…), so light and dark mode follow the site.
   Nav, footer, buttons, .cta, .table, .callout, .code and <details> are style.css components;
   this file only sizes and arranges them for long-form reading.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── Page column ───────── */
.post-wrap { max-width: 784px; margin: 0 auto; padding: 44px 24px 8px; }
@media (max-width: 600px) { .post-wrap { padding: 28px 16px 0; } }
.post-wrap section { padding: 0; }   /* style.css pads every <section> for the landing pages */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--faint); }

/* ───────── Article header ───────── */
.post h1 {
  font-size: clamp(34px, 5.6vw, 54px); line-height: 1.05; letter-spacing: -.035em;
  margin: 0 0 16px; max-width: none; text-align: left;
}
.post .dek { font-size: clamp(18px, 2.2vw, 20.5px); line-height: 1.5; color: var(--muted); margin: 0 0 20px; text-wrap: pretty; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 30px; padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-2); font-size: 14px; color: var(--muted);
}
.byline b { color: var(--text); font-weight: 600; }

/* ───────── Prose: a comfortable measure ───────── */
.prose { font-size: 18px; line-height: 1.7; }
.prose > * { max-width: 690px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--faint); }
.prose h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; margin: 2.1em 0 .6em; }
.prose h3 { font-size: 20.5px; line-height: 1.3; margin: 1.7em 0 .5em; }
.prose a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--denim) 55%, transparent); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--thread); }
.prose strong { font-weight: 650; }
.prose code { font-size: .84em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.prose pre.code { max-width: 100%; margin: 0 0 1.3em; line-height: 1.6; }
.prose pre.code code { padding: 0; background: none; box-shadow: none; font-size: inherit; overflow-wrap: normal; }

/* ───────── Answer-first box ───────── */
.answer {
  margin: 0 0 28px; padding: 22px 24px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--denim) 6%, var(--card)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.answer .label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--thread-ink);
}
.answer .label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.answer p { margin: 0; line-height: 1.65; }
.answer p + p, .answer p + ul { margin-top: .7em; }
.answer ul { margin: .6em 0 0; padding-left: 1.2em; }

/* ───────── Callouts (style.css .callout) ───────── */
.prose .callout { margin: 0 0 1.3em; font-size: 16px; line-height: 1.6; }
.prose .callout.disclose { background: color-mix(in srgb, var(--thread) 8%, var(--card)); }

/* ───────── Contents ───────── */
.toc { margin: 0 0 30px; padding: 16px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.toc b { display: block; margin-bottom: 6px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 24px; }
.toc li { margin: .2em 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ───────── Comparison table (style.css .table) ───────── */
.prose .table-wrap { max-width: 100%; margin: 0 0 1.4em; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.prose .table { min-width: 640px; font-size: 15px; line-height: 1.45; }
.prose .table th, .prose .table td { padding: 11px 12px; }
.prose .table th { font-size: 12px; }
.prose .table tr:last-child td { border-bottom: 0; }
.prose .table .ours td { background: color-mix(in srgb, var(--thread) 8%, transparent); }
.table-note { margin-top: -.6em; font-size: 14px; color: var(--muted); }

/* ───────── Per-app facts ───────── */
.pick-meta {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 1.1em; padding: 14px 16px;
  border-radius: 14px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; line-height: 1.5;
}
.pick-meta dt { font-weight: 600; color: var(--muted); }
.pick-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pick-meta { grid-template-columns: 1fr; } .pick-meta dd { margin-bottom: 6px; } }

/* ───────── Demo video or screenshot ───────── */
.post-video, .post-shot { margin: 0 0 1.4em; max-width: 100%; }
.post-video video, .post-shot img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--sunk); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.post-video video { aspect-ratio: 16 / 9; }
.post-video figcaption, .post-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ───────── FAQ (style.css styles <details>) ───────── */
.prose .faq { border-top: 1px solid var(--line); margin-bottom: 1.4em; }
.prose .faq summary { font-size: 17.5px; line-height: 1.4; }
.prose .faq details > p { font-size: 17px; }

/* ───────── Takeaways ───────── */
.prose .takeaways { padding: 4px 0 4px 20px; border-left: 3px solid var(--thread); list-style-position: inside; }

/* ───────── Closing CTA (style.css .cta, sized for an article) ───────── */
.post-cta { margin: 48px 0 12px; padding: 44px 22px; border-radius: var(--r-lg); }
.prose > .post-cta { max-width: none; }
.post-cta img { display: block; margin: 0 auto 14px; border-radius: 16px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .3)); }
.post-cta h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 10px; }
.post-cta p { max-width: 54ch; margin: 0 auto 22px; color: rgba(246, 243, 238, .8); font-size: 16.5px; }

/* ───────── Related guides ───────── */
.related { margin: 40px 0 24px; }
.related h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a {
  display: block; padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease);
}
.related a span { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--muted); }
.related a:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }

/* ───────── Guide index ───────── */
.post-wrap.guides-wrap { max-width: 1160px; }
.guides-head { max-width: 760px; }
.guides-head h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1; margin-top: 12px; }
.guides { list-style: none; margin: 8px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.guide-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; height: 100%; padding: 20px; border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); color: var(--text); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.guide-card img { width: 52px; height: 52px; border-radius: 12px; }
.guide-card h2 { font-size: 19.5px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 6px; }
.guide-card p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.guide-card small { color: var(--muted); font-size: 13.5px; }
.guides-wrap > .post > .callout { max-width: 760px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .guide-card, .related a { transition: none; } }
