/* Guide pages (built by _src/build.py). Loads after site.css: keeps the site's nav
   and footer, and sets a quieter editorial look for reading. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

.blog-body {
  --b-bg: #fdfcfa;
  --b-ink: #262f3f;
  --b-head: #15243f;
  --b-muted: #5e6879;
  --b-line: #e6e2da;
  --b-soft: #f5f3ee;
  --b-link: #1f4f94;
  --b-accent: #b5433f;
  --serif: "Source Serif 4", "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
}
/* The top bar matches the rest of the site, not the editorial body. */
.blog-body .nav { font-family: var(--body); line-height: 1.55; }
.blog-body .footer { border-top: 1px solid var(--b-line); max-width: 720px; margin: 70px auto 0; }

.blog { max-width: 720px; margin: 0 auto; padding: 140px 24px 20px; }
.blog h1, .blog h2, .blog h3 { font-family: var(--serif); font-weight: 600; color: var(--b-head); letter-spacing: -0.012em; }
.blog a { color: var(--b-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog a:hover { color: var(--b-head); }

/* Article header */
.crumbs { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-muted); }
.crumbs a { color: var(--b-accent) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head { padding-bottom: 28px; border-bottom: 1px solid var(--b-line); }
.post-head h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.12; }
.post-dek { margin-top: 16px; font-size: 21px; line-height: 1.5; color: var(--b-muted); }
.post-meta { margin-top: 20px; font-size: 14px; color: var(--b-muted); }
.post-meta b { color: var(--b-ink); font-weight: 650; }

/* The short answer up top, for skimmers and search snippets. */
.answer { margin-top: 32px; background: var(--b-soft); border-left: 3px solid var(--b-head); border-radius: 0 6px 6px 0; padding: 18px 24px 20px; }
.blog .answer-label { font-family: var(--sans); letter-spacing: 0.08em; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-muted); margin-bottom: 6px; }
.answer p { font-size: 17.5px; line-height: 1.65; }
.answer p + p { margin-top: 10px; }

/* Body copy */
.prose { margin-top: 32px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 29px; line-height: 1.25; margin-top: 52px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin-top: 34px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p, .prose li { color: var(--b-ink); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--b-muted); }
.prose ol > li::marker { font-weight: 650; }
.prose strong { color: var(--b-head); font-weight: 650; }
.prose blockquote { margin: 24px 0 0; border-left: 3px solid var(--b-line); padding: 2px 0 2px 20px; font-family: var(--serif); font-style: italic; font-size: 20px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--b-line); border-radius: 8px; margin-top: 24px !important; }
.prose table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15.5px; line-height: 1.5; }
.prose th { background: var(--b-soft); color: var(--b-head); text-align: left; font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--b-line); }
.prose td { padding: 11px 14px; border-top: 1px solid var(--b-line); vertical-align: top; }
.prose tr:first-child td, .prose tr:first-child th[scope="row"] { border-top: 0; }
.prose caption { caption-side: top; text-align: left; padding: 12px 14px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--b-muted); border-bottom: 1px solid var(--b-line); }
.prose th[scope="row"] { background: none; color: var(--b-head); font-weight: 650; border-top: 1px solid var(--b-line); border-bottom: 0; vertical-align: top; }
.table-wrap:focus-visible { outline: 3px solid var(--b-link); outline-offset: 2px; }

/* The one in-text mention of the app */
.app-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px !important; border: 1px solid var(--b-line); border-radius: 10px; padding: 18px 20px; background: #fff; }
.app-note img { border-radius: 10px; flex: none; }
.app-note-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-muted); }
.app-note p { font-size: 16.5px; line-height: 1.6; }
.app-note .app-note-label + p { margin-top: 4px; }
.app-note .app-note-action { margin-top: 8px; font-size: 14.5px; font-weight: 650; color: var(--b-muted); }

/* Sources and the closing line */
.post-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--b-line); }
.sources h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-muted); }
.sources ol { margin: 10px 0 0; padding-left: 22px; }
.sources li { font-size: 15px; line-height: 1.55; color: var(--b-muted); }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--b-muted); }
.not-medical-end { margin-top: 20px; font-size: 14.5px; color: var(--b-muted); }

/* End card */
.post-cta { display: flex; gap: 22px; align-items: flex-start; margin-top: 48px; background: #eef2f8; border-radius: 12px; padding: 30px 32px; }
.post-cta > img { border-radius: 14px; flex: none; }
.post-cta h2 { font-size: 26px; line-height: 1.2; }
.post-cta p { margin-top: 8px; font-size: 16.5px; color: var(--b-muted); }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.post-cta .store { font-size: 18px; padding: 10px 18px 10px 15px; border-radius: 12px; }
.post-cta .store svg { width: 22px; height: 22px; }
.post-cta-link { font-size: 15px; font-weight: 650; }
.post-cta .waitlist { margin-top: 18px; }
.post-cta .waitlist input[type="email"] { font-size: 16px; }
.post-cta .waitlist button { font-size: 16px; }
.post-cta .waitlist-note { font-size: 14.5px; color: var(--b-muted); }

/* Guide lists: the index and "More guides" */
.related { margin-top: 56px; }
.related > h2 { font-size: 24px; margin-bottom: 6px; }
.post-list { border-top: 1px solid var(--b-line); }
.post-list.index { margin-top: 8px; border-top: 0; }
.post-row { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--b-line); }
.post-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--b-soft); display: grid; place-items: center; }
.post-thumb img { width: 46px; height: 46px; object-fit: contain; }
.post-row-text { display: flex; flex-direction: column; gap: 4px; }
.blog .post-row-title { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.post-row-title a { color: var(--b-head) !important; text-decoration: none; }
.post-row-title a::after { content: ""; position: absolute; inset: 0; }
.post-row:hover .post-row-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-row-title a:focus-visible { outline: none; }
.post-row:focus-within { outline: 3px solid var(--b-link); outline-offset: 4px; border-radius: 6px; }
.post-row-text > p { font-size: 16px; line-height: 1.5; color: var(--b-muted); }
.post-row small { font-size: 13px; color: var(--b-muted); }
.index .post-row-title { font-size: 24px !important; }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; background: var(--b-soft); border: 1px solid var(--b-line); color: var(--b-muted); font-size: 12px; font-weight: 650; }

.footer .not-medical { max-width: 560px; margin: 0 auto 10px; font-size: 14px; }

.draft-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: #b3403d; color: #fff; font-family: var(--sans); font-weight: 650; font-size: 13px; padding: 7px 16px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35); white-space: nowrap; }

@media (max-width: 620px) {
  .blog-body { font-size: 17px; }
  .blog { padding: 110px 20px 10px; }
  .post-dek { font-size: 19px; }
  .prose h2 { font-size: 25px; margin-top: 44px; }
  .answer { padding: 16px 18px 18px; }
  .post-cta { flex-direction: column; padding: 24px 22px; gap: 14px; }
  .blog .post-row-title, .index .post-row-title { font-size: 19px !important; }
  .post-thumb { width: 52px; height: 52px; }
  .post-thumb img { width: 38px; height: 38px; }
}
