/* Guides section: article typography and the list page. Uses the landing tokens from /styles.css */
.wrap.narrow { width: min(760px, 100% - 48px); }
.guides-hero { padding-block: clamp(40px, 6vw, 72px) 8px; }
.guides-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.guides-hero .lead { margin-top: 16px; max-width: 48ch; }
.guides-empty { color: var(--ink-muted); }
.prose .meta { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.prose { padding-top: clamp(24px, 4vw, 48px); }
.prose .crumbs { margin-bottom: 20px; font-size: 14px; }
.prose .crumbs a { color: var(--ink-muted); text-decoration: none; }
.prose h1 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.03em; line-height: 1.08; }
.prose .meta { margin-top: 12px; }
.prose .lead { margin-top: 20px; }
.prose h2 { margin-top: 40px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; }
.prose p { margin-top: 16px; max-width: 66ch; }
.prose ol, .prose ul { margin-top: 16px; padding-left: 1.4em; max-width: 66ch; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.guide-cta { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--accent-soft); }
.guide-cta h2 { margin-top: 0; }
.guide-cta .btn { margin-top: 20px; }
.guide-note { margin-top: 32px; font-size: 14px !important; color: var(--ink-muted); }
.prose .cover { margin: 28px 0 0; }
.prose .cover img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.breezy-note { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.breezy-note img { flex: none; width: 64px; height: auto; filter: var(--shadow-mascot); }
.breezy-note p { margin: 0; font-size: 16px; }
.prose h3 { margin-top: 28px; font-size: 19px; letter-spacing: -.01em; }
.prose h3 + p { margin-top: 8px; }
.prose .table-wrap { margin-top: 20px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; }

/* Guides list: filter chips and a responsive card grid with covers */
.guides-hero .wrap { display: flex; flex-direction: column; gap: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font: inherit; font-size: 14.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:focus-visible, .guide-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guides-list { padding-top: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 200ms var(--ease), translate 200ms var(--ease), box-shadow 200ms var(--ease); }
.guide-card[hidden] { display: none; }
.guide-thumb { display: block; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--accent-soft); }
.guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.guide-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-top .tag { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.guide-top .meta { font-size: 13px; color: var(--ink-muted); }
.guide-body h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.guide-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover { border-color: var(--accent); translate: 0 -3px; box-shadow: 0 14px 34px rgba(30, 40, 110, .14); }
  .guide-card:hover .guide-thumb img { transform: scale(1.04); }
}
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guides-hero .wrap { gap: 0; } }
@media (prefers-reduced-motion: reduce) { .guide-card, .guide-thumb img { transition: none; } }

/* In-app mode: the app opens an article with ?app=1 (set in <head> as html.in-app).
   Hide the site chrome; the call to action shows only when site.js has an app link for the technique. */
.in-app .nav, .in-app .footer, .in-app .notice, .in-app .crumbs { display: none !important; }
.in-app .prose { padding-top: 16px; }
.in-app .guide-cta { display: none; }
.in-app .guide-cta.app-link { display: block; }
