/* The blog: /blog/ and each post. Loaded after /legal/legal.css, which
   gives the tokens, both themes, the top bar, the document type and the
   footer; this adds what an article and a list of articles need. */

/* ---------- the top bar's way back to the list ---------- */
.top .crumb { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); text-decoration: none; }
.top .crumb:hover { color: var(--ink); }
.top .left { display: flex; align-items: center; }

/* ---------- a post ---------- */
.kicker { font-size: 13.5px; color: var(--ink-3); }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--ink); text-decoration: underline; }
.post h1 { margin-top: 10px; font-size: clamp(32px, 5.4vw, 48px); }
.byline { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-3); }
.byline span + span::before { content: "·"; margin-right: 10px; color: var(--muted); }
.hero-art { margin-top: 28px; width: 100%; height: auto; aspect-ratio: 960 / 440; object-fit: cover; border-radius: 20px; display: block; background: var(--rule-soft); }

/* The short answer: the post's point in a few sentences, first, so a
   reader or an AI answer engine can take it without the rest. */
.answer { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--raised); box-shadow: 0 1px 0 var(--sheen) inset, 0 18px 40px -26px rgba(var(--shadow),calc(.4 * var(--shadow-k))); }
.answer .label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.answer p { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }

.toc { margin-top: 28px; font-size: 14.5px; }
.toc b { font-weight: 600; }
.toc ol { margin-top: 8px; padding-left: 20px; color: var(--ink-3); }
.toc li { margin-top: 4px; }
.toc a { color: var(--ink-2); text-underline-offset: 2px; }

.doc h2 { scroll-margin-top: 16px; }
.doc .points { list-style: none; padding-left: 0; }
.doc .points li { position: relative; padding-left: 18px; }
.doc .points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(150deg, #27426B, #7FB8E6); }
.doc table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); line-height: 1.5; }
.doc th { font-weight: 600; color: var(--ink); }
.doc td { color: var(--ink-2); }
.doc blockquote { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--rule); font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 66ch; }

/* A comparison: wider than the column, so it stays in the column and
   scrolls sideways, its row labels pinned. The caption sits below the
   scrolling part, inside the same box, so it never scrolls away. */
.table-wrap { margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: 0 1px 0 var(--sheen) inset, 0 24px 48px -30px rgba(var(--shadow),calc(.38 * var(--shadow-k))); }
/* A shadow on the right edge while there is more to scroll to: the cover
   scrolls with the table (local) and hides the shadow (scroll) at the end. */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to left, var(--raised) 40%, transparent) right center / 48px 100% no-repeat local,
    linear-gradient(to left, rgba(var(--shadow),calc(.16 * var(--shadow-k))), transparent) right center / 16px 100% no-repeat scroll,
    var(--raised);
}
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.table-wrap figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--muted); }
.doc table.compare { margin: 0; min-width: 900px; font-size: 13.5px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13.5px; vertical-align: bottom; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; width: 150px; background: var(--raised); box-shadow: 1px 0 0 var(--rule-soft); }
.compare tbody th { font-weight: 600; }
.compare .us { background: color-mix(in srgb, #7FB8E6 12%, var(--raised)); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shown on a draft until its facts are checked; never meant to ship. */
.draft-note { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: #f6e3a8; color: #14140f; font-size: 14px; line-height: 1.5; }

/* Questions and answers, open by default so nothing is hidden from a
   crawler or a reader who searches the page. */
.faq { margin-top: 12px; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; line-height: 1.4; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; }

/* The waitlist, at the end of every post. */
.cta { margin-top: 48px; padding: 26px 24px; border-radius: 22px; background: var(--raised); text-align: center; box-shadow: 0 1px 0 var(--sheen) inset, 0 28px 56px -30px rgba(var(--shadow),calc(.4 * var(--shadow-k))); }
.cta .meet { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-variation-settings: 'opsz' 19; font-size: 24px; display: inline-flex; align-items: baseline; gap: .25em; }
.cta .meet img { height: .76em; width: auto; }
.cta .meet img.m { height: .82em; }
/* The Midas lockup: the bars and the MIDAS word, sized to the serif. */
.cta .meet img.w { height: .56em; align-self: center; }
.cta .meet img.m { align-self: center; }
.cta p { margin: 8px auto 0; max-width: 44ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cta a.btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; font-size: 15px; text-decoration: none; }
.disclaimer { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); }

.related { margin-top: 48px; }
.related h2 { font-weight: 500; font-size: 21px; letter-spacing: -.02em; }

/* ---------- lists of posts: /blog/, and Related ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--raised); text-decoration: none; box-shadow: 0 1px 0 var(--sheen) inset, 0 24px 48px -28px rgba(var(--shadow),calc(.38 * var(--shadow-k))); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 960 / 480; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card .tag { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin-top: 6px; font-weight: 500; font-size: 19px; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.card .when { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); }
.cards .card.lead { grid-column: 1 / -1; flex-direction: row; }
.cards .card.lead img { width: 54%; aspect-ratio: auto; min-height: 280px; }
.cards .card.lead .body { padding: 26px 26px 24px; }
.cards .card.lead h3 { font-size: 26px; }
.blog-head h1 { font-size: clamp(36px, 6vw, 56px); }
.blog-head .lede { font-size: 16.5px; }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card.lead { flex-direction: column; }
  .cards .card.lead img { width: 100%; min-height: 0; aspect-ratio: 960 / 480; }
  .cards .card.lead .body { padding: 16px 18px 18px; }
  .cards .card.lead h3 { font-size: 20px; }
  .top .crumb { display: none; }
}
@media print {
  .cta, .related, .toc { display: none; }
}
