/* Content pages, rebuilt to Denis's redesign (Nov 24, 2026): the blog list (.bl), a blog post (.bp),
   the legal pages (.lg, pages/_lg_doc) and sign-in (.si, in the application layout, not the landing one).
   Loaded from those views with content_for :head. Tokens from base.css and site.css. No motion.
   Several rules override landing.css rules the old markup used (.feat, .posts, .meta, .post-cta ...),
   kept because tests and other pages still use those class names.

   Contrast (WCAG 2.2 AA), pairs not already listed in site.css:
   --teal-400 #3cc2b6 on --ink #12161b (category on the dark card, sign-in eyebrow and ticks) 8.3:1
   --ink on --teal-400 ("Latest" tag) 8.3:1          rgba(255,255,255,.9) on --ink (sign-in panel list) 15.6:1
   --slate on --chip #eef1f3 (video pill) 8.6:1       --teal-800 on --teal-50 (post category, callouts) 6.9:1
   Filter and page tabs use --border #7a838e for their edge (3.9:1 on #fff); the current tab is --ink. */

/* ---------- Shared: tabs (blog filter, legal pages) ---------- */
.lp :is(.bl .blog-types, .lg-pages) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lp :is(.bl .blog-types, .lg-pages) a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lp :is(.bl .blog-types, .lg-pages) a:hover { background: var(--surface); color: var(--ink); }
.lp :is(.bl .blog-types, .lg-pages) a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.lp .bl .blog-types .bl-n { font-weight: 500; color: var(--muted); }
.lp .bl .blog-types a[aria-current] .bl-n { color: rgba(255,255,255,.8); }

/* ---------- Blog list ---------- */
.lp .bl-top { padding: 64px var(--side) 96px; }
.lp .bl-in { display: flex; flex-direction: column; gap: 48px; }
.lp .bl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.lp .bl-intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.lp .bl-lead-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.lp .bl-lead-row:not(:has(.bl-side)) { grid-template-columns: minmax(0, 1fr); }

.lp .bl .feat { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; padding: 40px; border: 0; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.lp .bl .feat-cover { display: block; width: 100%; }
.lp .bl .feat-cover img { border-radius: var(--r-md); }
.lp .bl .feat .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: rgba(255,255,255,.8); }
.lp .bl .feat .meta span + span::before { content: none; }
.lp .bl .feat .bl-latest { padding: 4px 10px; border-radius: var(--r-tag); background: var(--teal-400); color: var(--ink); font-size: 12px; font-weight: 700; }
.lp .bl .feat .bl-cat { color: var(--teal-400); }
.lp .bl .feat-t { max-width: 560px; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
.lp .bl .feat-t a { color: #fff; }
.lp .bl .feat-s { max-width: 44em; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.8); }
.lp .bl .bl-read { background: #fff; color: var(--ink); }
.lp .bl .bl-read:hover { background: var(--chip); }
.lp .bl .feat :is(a, button):focus-visible { outline-color: var(--teal-400); }

.lp .bl .posts { list-style: none; margin: 0; padding: 0; border: 0; }
.lp .bl .bl-side { display: flex; flex-direction: column; gap: 24px; }
.lp .bl .bl-side .bl-card { flex: 1 1 0; }
.lp .bl .bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* A post card (blog/_bl_card), on the list and under a post */
.lp :is(.bl, .bp) .bl-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.lp :is(.bl, .bp) .bl-card .post-cover { display: block; margin: 0 0 6px; }
.lp :is(.bl, .bp) .bl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 15px; }
.lp :is(.bl, .bp) .bl-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.lp :is(.bl, .bp) .bl-vid { gap: 6px; padding: 4px 10px 4px 8px; font-size: 12px; }
.lp :is(.bl, .bp) .post-t { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.lp :is(.bl, .bp) .post-t a { display: inline; min-height: 0; font-size: inherit; font-weight: inherit; color: var(--ink); text-decoration: none; }
.lp :is(.bl, .bp) .post-t a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lp :is(.bl, .bp) .post-s { font-size: 15px; line-height: 1.55; color: var(--slate); }
.lp :is(.bl, .bp) .bl-date { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }

.lp .bl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.lp .bl .blog-empty { margin: 0; font-size: 18px; color: var(--slate); }

@media (max-width: 959px) {
  .lp .bl-lead-row { grid-template-columns: minmax(0, 1fr); }
  .lp .bl .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lp .bl-top { padding-block: 56px; }
  .lp .bl .feat { padding: 24px; }
  .lp .bl .feat-t { font-size: 28px; }
  .lp .bl .bl-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Blog post and legal pages: title band, then "On this page" beside the text ---------- */
.lp :is(.bp-head, .lg-head) { padding: 64px var(--side) 48px; }
.lp :is(.bp-body, .lg-body) { padding: 48px var(--side) 96px; background: #fff; }
.lp :is(.bp-in, .lg-in) { display: flex; flex-direction: column; gap: 20px; max-width: 1040px; margin: 0 auto; }
.lp :is(.bp-grid, .lg-grid) { flex-direction: row; align-items: flex-start; gap: 32px 64px; }
.lp :is(.bp-main, .lg-doc) { flex: 1 1 auto; min-width: 0; max-width: 720px; }
.lp :is(.bp-h1, .lg-h1) { max-width: 862px; font-size: clamp(2.25rem, 1rem + 3.4vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }

.lp :is(.bp-toc, .lg-toc) { position: sticky; top: 24px; flex: 0 0 256px; display: flex; flex-direction: column; gap: 4px; }
.lp :is(.bp-toc-h, .lg-toc-h) { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp :is(.bp-toc, .lg-toc) ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lp :is(.bp-toc, .lg-toc) a { display: flex; align-items: center; min-height: 36px; padding: 6px 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--slate); text-decoration: none; }
.lp :is(.bp-toc, .lg-toc) a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* The section in view: bold ink (700 vs 500), no bar on one side (Denis, Nov 26, 2026). */
.lp :is(.bp-toc, .lg-toc) a[aria-current] { color: var(--ink); font-weight: 700; }

@media (max-width: 959px) {
  .lp :is(.bp-grid, .lg-grid) { flex-direction: column; align-items: stretch; }
  .lp :is(.bp-toc, .lg-toc) { position: static; flex-basis: auto; }
}
@media (max-width: 640px) {
  .lp :is(.bp-head, .lg-head) { padding-block: 40px 32px; }
  .lp :is(.bp-body, .lg-body) { padding-block: 32px 72px; }
}

/* Blog post: title band */
.lp .bp .back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin: 0; font-size: 15px; font-weight: 700; color: var(--teal); text-decoration: none; }
.lp .bp .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp .bp .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.lp .bp .meta span + span::before { content: none; }
.lp .bp .meta .cat { padding: 4px 10px; border-radius: var(--r-tag); background: var(--teal-50); color: var(--teal-800); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp .bp .meta-dot { color: var(--muted); }
.lp .bp .dek { max-width: 878px; margin: 0; font-size: 20px; line-height: 1.55; color: var(--slate); }
.lp .bp .bp-head .post-hero, .lp .bp .bp-head .post-video { margin: 8px 0 0; }
.lp .bp .post-hero img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.lp .bp .bp-head .post-video .vid-poster, .lp .bp .bp-head .post-video .vid-link { border-radius: var(--r-lg); }

/* Blog post: the body (Action Text) */
.lp .bp .prose { margin: 0; }
.lp .bp .rich-text { font-size: 18px; line-height: 1.7; color: var(--slate); overflow-wrap: break-word; }
.lp .bp .rich-text > * + * { margin-top: 20px; }
.lp .bp .rich-text :is(h2, h3, h4) { color: var(--ink); scroll-margin-top: 24px; text-wrap: balance; }
.lp .bp .rich-text h2 { margin-top: 48px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.lp .bp .rich-text h3 { margin-top: 36px; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.lp .bp .rich-text h4 { margin-top: 28px; font-size: 18px; font-weight: 800; }
.lp .bp .rich-text > :first-child { margin-top: 0; }
.lp .bp .rich-text :is(h2, h3, h4) + * { margin-top: 16px; }
.lp .bp .rich-text a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp .bp .rich-text a:hover { color: var(--teal-800); }
.lp .bp .rich-text strong { color: var(--ink); }
.lp .bp .rich-text :is(ul, ol) { margin-bottom: 0; padding-left: 22px; }
.lp .bp .rich-text li { line-height: 1.6; }
.lp .bp .rich-text li + li { margin-top: 8px; }
.lp .bp .rich-text li::marker { color: var(--muted); }
.lp .bp .rich-text blockquote { margin: 28px 0 0; padding: 20px 24px; border: 0; border-radius: 16px; background: var(--teal-50); font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--teal-800); }
.lp .bp .rich-text blockquote strong { color: inherit; }
.lp .bp .rich-text pre { padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font-size: 15px; line-height: 1.6; color: var(--ink); }
.lp .bp .rich-text code { font-size: .9em; }
.lp .bp .rich-text :not(pre) > code { padding: 2px 6px; border-radius: var(--r-tag); background: var(--chip); color: var(--ink); }
.lp .bp .rich-text hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.lp .bp .rich-text :is(figure, .attachment) { margin: 28px 0 0; }
.lp .bp .rich-text img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.lp .bp .rich-text figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lp .bp .rich-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.45; }
.lp .bp .rich-text :is(th, td) { padding: 14px 16px; text-align: left; vertical-align: top; }
.lp .bp .rich-text thead th { background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp .bp .rich-text tbody th { font-weight: 700; color: var(--ink); }
.lp .bp .rich-text tr + tr > *, .lp .bp .rich-text tbody tr > * { border-top: 1px solid var(--line); }
.lp .bp .rich-text thead tr > * { border-top: 0; }

/* Blog post: after the body */
.lp .bp .post-watch { margin-top: 48px; }
.lp .bp .post-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 48px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.lp .bp .post-cta > div { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.lp .bp .cta-t { max-width: none; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.lp .bp .post-cta p { font-size: 15px; line-height: 1.55; color: var(--slate); }
.lp .bp .wl-note { margin-top: 16px; }
@media (max-width: 640px) {
  .lp .bp .dek { font-size: 18px; }
  .lp .bp .rich-text { font-size: 17px; }
  .lp .bp .rich-text h2 { font-size: 24px; }
  .lp .bp .post-cta { flex-direction: column; align-items: stretch; padding: 24px; }
}

/* Blog post: "More from the blog" */
.lp .bp-more { padding: 96px var(--side); }
.lp .bp-more-in { display: flex; flex-direction: column; gap: 40px; }
.lp .bp-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.lp .bp .post-more { margin: 0; padding: 0; border: 0; }
.lp .bp .bp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lp .bp .cmp-links { font-size: 15px; line-height: 1.8; color: var(--slate); }
.lp .bp .cmp-links a { font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lp .bp .cmp-links a:hover { color: var(--teal-800); }
@media (max-width: 959px) { .lp .bp .bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lp .bp-more { padding-block: 72px; } .lp .bp .bp-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Legal pages (pages/_lg_doc) ---------- */
.lp .lg .doc-updated { font-size: 14px; line-height: 1.55; color: var(--muted); }
.lp .lg-pages { margin-top: 8px; }
.lp .lg-doc { display: flex; flex-direction: column; gap: 20px; }
.lp .lg-doc h2 { margin-top: 28px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); scroll-margin-top: 24px; }
.lp .lg-doc > h2:first-child { margin-top: 0; }
.lp .lg-doc :is(p, li) { font-size: 18px; line-height: 1.7; color: var(--slate); }
.lp .lg-doc .doc-lead { color: var(--ink); }
.lp .lg-doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.lp .lg-doc a { font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lp .lg-doc a:hover { color: var(--teal-800); }
/* Numbered sections, as in the design; the heading text (and its anchor) stays unnumbered. */
.lp .lg-num { counter-reset: lg-sec; }
.lp .lg-num h2 { counter-increment: lg-sec; }
.lp .lg-num h2::before { content: counter(lg-sec) ". "; }
.lp .lg-toc ol { counter-reset: lg-toc; }
.lp .lg-toc li { counter-increment: lg-toc; }
.lp .lg-toc a::before { content: counter(lg-toc) ".\00a0"; }
@media (max-width: 640px) {
  .lp .lg-doc h2 { font-size: 24px; }
  .lp .lg-doc :is(p, li) { font-size: 17px; }
}

/* ---------- Sign in (devise/sessions/new; application layout, so scoped under .app .si) ---------- */
.app:has(.si) main { padding: 0; }
.app:has(.si) main > .wrap { max-width: none; padding: 0; }
.app .si { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; color: var(--ink); background: #fff; }
.app .si-main { display: flex; flex-direction: column; gap: 32px; padding: 28px 36px 48px; }
.app .si-logo { display: flex; align-items: center; align-self: flex-start; min-height: 44px; }
.app .si-logo img { display: block; }
.app .si-box { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 400px; margin: auto; }
.app .si .si-h1 { font-size: 44px; font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.app .si-h1:focus { outline: none; }
.app .si .lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--slate); }
.app .si .lead strong { color: var(--ink); overflow-wrap: anywhere; }
.app .si .auth-next { margin: 0; }
.app .si-fine { font-size: 15px; line-height: 1.55; color: var(--muted); }
.app .si-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.app .si-field { display: flex; flex-direction: column; gap: 8px; }
.app .si-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.app .si-input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; font: 400 16px var(--font); color: var(--ink); }
.app .si-input::placeholder { color: var(--muted); opacity: 1; }
.app .si-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.app .si-input[aria-invalid=true] { border-color: var(--red); }
.app .si .cf-turnstile { margin-top: 8px; }
.app .si-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 16px 24px; border: 1px solid transparent; border-radius: var(--r); font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer; }
.app .si-form .si-btn { margin-top: 8px; }
.app .si-btn-p { background: var(--teal); color: #fff; }
.app .si-btn-p:hover { background: var(--teal-800); }
.app .si-btn-s { background: #fff; color: var(--ink); border-color: var(--border); }
.app .si-btn-s:hover { background: var(--surface); }
.app .si-google { margin: 0; }
.app .si-or { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.app .si-or::before, .app .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.app .si-terms { font-size: 14px; line-height: 1.55; color: var(--muted); }
.app .si-terms a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.app .si-terms a:hover { color: var(--teal-800); }
.app .si-side { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 64px 6%; background: var(--ink); color: #fff; }
.app .si-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-400); }
.app .si-h2 { max-width: 538px; font-size: 48px; font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.app .si-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.9); }
.app .si-checks li { display: flex; align-items: flex-start; gap: 12px; }
.app .si-checks .icon { flex: none; margin-top: 3px; color: var(--teal-400); }
@media (max-width: 959px) {
  .app .si { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app .si-main { padding: 28px 20px 48px; }
  .app .si-box { margin: 0; }
  .app .si-side { padding: 64px 24px; }
  .app .si-h2 { font-size: 32px; }
}
@media (max-width: 400px) { .app .si .si-h1 { font-size: 36px; } }
