/* Blog pages (blog.html and individual posts). Loaded after style.css. */

.post-hero{padding:40px 0 10px;}
/* Page container matches the rest of the site (left edge in line with the logo); reading column stays 820px wide.
   The blog index's post grid and filter bar are full-width (not a reading column), so they're excluded. */
.post-hero .wrap>*,.post-body .wrap>*,.blog-list .wrap>*{max-width:820px;}
.blog-list .wrap>.post-grid,.blog-list .wrap>.no-results,.blog-filter .wrap>*,.post-body .wrap>.post-layout{max-width:none;}
.post-kicker{color:var(--teal);font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:14px;}
.post-hero h1{font-size:48px;color:var(--blue);line-height:1.12;}
.post-byline{margin-top:22px;display:flex;align-items:center;gap:14px;color:var(--muted);font-size:14px;}
.post-byline .avatar{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0;object-fit:cover;object-position:top;}
.post-byline strong{color:var(--ink);display:block;font-weight:600;}

.post-body{padding:40px 0 60px;}
.post-body p{font-size:17px;line-height:1.85;color:#1d1d1d;margin-bottom:22px;}
.post-body h2{font-size:30px;color:var(--blue);margin:48px 0 18px;}
.post-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;}
.post-body .lead{font-size:21px;font-weight:600;color:var(--ink);line-height:1.6;}

.post-figure{margin:34px 0;}
.post-figure img{width:100%;height:auto;display:block;border-radius:14px;border:1px solid var(--line);box-shadow:0 10px 30px rgba(27,35,64,.08);}
.post-figure figcaption{margin-top:12px;font-size:14px;color:var(--muted);line-height:1.6;text-align:left;}

/* Vertical (9:16) YouTube embed */
.post-video .video-frame{position:relative;max-width:360px;margin:0 auto;aspect-ratio:9/16;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:0 10px 30px rgba(27,35,64,.08);background:#000;}
.post-video figcaption{text-align:center;max-width:420px;margin-left:auto;margin-right:auto;}
.post-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

.author-box{display:flex;gap:22px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin:30px 0 10px;}
.author-box img{width:96px;height:96px;border-radius:50%;object-fit:cover;flex:0 0 96px;}
.author-box h3{font-size:18px;color:var(--blue);margin:0 0 6px;}
.author-box p{font-size:14px;color:var(--muted);line-height:1.7;margin:0;}
.author-box p + p{margin-top:10px;}

/* Post page layout: reading column + "Most Recent" / "Read Next" sidebar.
   The title block (kicker/h1/subtitle/byline) lives inside .post-main, as
   .post-top, so it shares the grid with the sidebar and both start at the
   same top edge. (.post-hero is a separate, simpler title block used only
   by blog.html's own index-page heading — not touched by this.) */
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start;}
.post-main{min-width:0;}
.post-top{padding-bottom:10px;}
.post-top h1{font-size:48px;color:var(--blue);line-height:1.12;}
.post-top .post-subtitle{margin-top:8px;font-family:'Caveat',cursive;font-weight:600;font-size:34px;line-height:1.1;color:var(--teal);}
.post-sidebar{position:sticky;top:110px;max-height:calc(100vh - 130px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 12px 24px;margin:-6px -12px 0;}
.sidebar-section{margin-bottom:36px;}
.sidebar-section:last-child{margin-bottom:0;}
.sidebar-label{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin:0 0 14px;}
.sidebar-featured{display:block;text-decoration:none;color:inherit;}
.sidebar-featured img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:1px solid var(--line);margin-bottom:12px;}
.post-body .sidebar-featured h3{font-size:16px;color:var(--blue);line-height:1.35;margin:0 0 10px;}
.sidebar-meta{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);}
.sidebar-meta img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0;margin:0;border:none;}
.sidebar-next-list{display:flex;flex-direction:column;gap:18px;}
.sidebar-next-item{display:flex;gap:12px;text-decoration:none;color:inherit;}
.sidebar-next-item img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex-shrink:0;border:1px solid var(--line);}
.sidebar-next-item h4{font-size:14.5px;font-weight:600;color:var(--blue);line-height:1.35;margin:0 0 4px;}
.sidebar-next-item span{font-size:12px;color:var(--muted);}
/* Sidebar links: no inherited body-link underline, and a visible response on hover/focus */
.post-body .post-sidebar a{text-decoration:none;}
.sidebar-featured,.sidebar-next-item{border-radius:12px;transition:background .2s ease;}
.sidebar-next-item{padding:8px;margin:-8px;}
.sidebar-featured img,.sidebar-next-item img{transition:transform .25s ease, box-shadow .25s ease;}
.sidebar-featured h3,.sidebar-next-item h4{transition:color .2s ease;}
.sidebar-featured:hover img,.sidebar-featured:focus-visible img{transform:translateY(-3px);box-shadow:0 12px 26px rgba(27,35,64,.14);}
.sidebar-next-item:hover,.sidebar-next-item:focus-visible{background:rgba(67,97,238,.06);}
.sidebar-next-item:hover img,.sidebar-next-item:focus-visible img{transform:scale(1.04);}
.sidebar-featured:hover h3,.sidebar-featured:focus-visible h3,.sidebar-next-item:hover h4,.sidebar-next-item:focus-visible h4{color:var(--teal);text-decoration:underline;text-underline-offset:3px;}

/* Hover preview for links to other posts (built by js/post-sidebar.js, appended to <body>) */
.link-preview{position:fixed;top:0;left:0;z-index:300;display:block;width:300px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(27,35,64,.16);overflow:hidden;color:inherit;text-decoration:none;opacity:0;visibility:hidden;transform:translateY(4px);pointer-events:none;transition:opacity .15s ease, transform .15s ease, visibility 0s linear .15s;}
.link-preview.is-open{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .15s ease, transform .15s ease, visibility 0s;}
.link-preview>img{width:100%;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid var(--line);}
.link-preview .lp-body{padding:12px 14px 14px;}
.link-preview .lp-kicker{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin:0 0 4px;}
.link-preview .lp-title{font-size:15px;font-weight:700;color:var(--blue);line-height:1.35;margin:0 0 6px;}
.link-preview .lp-excerpt{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.link-preview .lp-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);}
.link-preview .lp-meta img{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;}
@media (prefers-reduced-motion: reduce){.link-preview,.link-preview.is-open{transition:none;transform:none;}}

/* "Listen to this article" player (built by js/post-audio.js, placed under the byline).
   Once playing, it docks to the bottom of the screen when its spot scrolls out of view. */
.listen-slot{margin-top:22px;}
.listen{display:flex;align-items:center;gap:14px;max-width:520px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px 8px 8px;box-shadow:0 6px 18px rgba(27,35,64,.05);}
.listen button{border:none;background:none;cursor:pointer;color:var(--teal);display:flex;align-items:center;justify-content:center;padding:0;font-family:inherit;}
.listen svg{width:18px;height:18px;fill:currentColor;}
.listen .listen-play{width:44px;height:44px;border-radius:50%;background:var(--teal);color:#fff;flex-shrink:0;box-shadow:0 6px 16px rgba(47,166,176,.32);transition:background .2s ease, transform .15s ease;}
.listen .listen-play:hover{background:#2E9CA6;transform:scale(1.05);}
.listen .listen-play svg{width:20px;height:20px;}
.listen-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.listen-title{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.3;}
.listen-meta{font-size:12.5px;color:var(--muted);}
.listen-bar{height:3px;border-radius:2px;background:var(--line);overflow:hidden;margin-top:5px;display:none;}
.listen-bar span{display:block;height:100%;width:0;background:var(--orange);transition:width .4s ease;}
.listen.is-started .listen-bar{display:block;}
.listen-controls{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.listen-controls[hidden]{display:none;}
.listen-controls button{width:34px;height:34px;border-radius:50%;transition:background .2s ease;}
.listen-controls button:hover,.listen-controls button:focus-visible{background:rgba(47,166,176,.1);}
.listen .listen-rate{width:auto;min-width:42px;padding:0 8px;border-radius:999px;font-size:13px;font-weight:700;}
.listen .listen-stop{color:var(--muted);}
.listen.is-docked{position:fixed;z-index:150;left:50%;bottom:calc(18px + env(safe-area-inset-bottom, 0px));transform:translateX(-50%);width:calc(100% - 32px);box-shadow:0 18px 40px rgba(27,35,64,.18);animation:listenDock .25s ease;}
@keyframes listenDock{from{opacity:0;transform:translate(-50%,12px);}to{opacity:1;transform:translateX(-50%);}}
/* The paragraph being read */
.post-body .is-reading{background:rgba(75,224,176,.16);border-radius:6px;box-shadow:0 0 0 6px rgba(75,224,176,.16);transition:background .3s ease, box-shadow .3s ease;}
@media (prefers-reduced-motion: reduce){.listen.is-docked{animation:none;}.listen-bar span{transition:none;}}
@media(max-width:600px){
  .listen{gap:10px;}
  .listen-title{font-size:13.5px;}
  .listen-controls button{width:30px;height:30px;}
  .listen .listen-rate{min-width:36px;padding:0 4px;}
}

@media(max-width:960px){
  .post-layout{grid-template-columns:1fr;gap:40px;}
  .post-sidebar{position:static;max-height:none;overflow:visible;padding:0;margin:0;}
  .sidebar-section{margin-bottom:28px;}
}

/* Placeholder for media still to come. Remove before publishing. */
.media-todo{margin:34px 0;border:2px dashed var(--teal);border-radius:14px;padding:34px 24px;text-align:center;color:var(--teal);font-weight:600;font-size:15px;background:rgba(47,166,176,.05);}
.media-todo span{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:6px;}

.post-cta{margin-top:50px;padding:36px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 30px rgba(27,35,64,.06);}
.post-body .post-cta h2{margin-top:0;}
.post-cta .btns{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;}
.post-cta .btns a{text-decoration:none;}
.post-body .post-cta .btn-orange{color:#fff;}
.post-body .post-cta .btn-outline{color:var(--teal);display:inline-flex;align-items:center;}

/* Blog index */
.blog-list{padding:30px 0 70px;}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.post-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(27,35,64,.06);transition:transform .15s ease,box-shadow .15s ease;}
/* blog-index.js sets the hidden attribute to filter cards (search + author pills). The
   display:flex above has equal specificity to the browser's own [hidden]{display:none}
   rule, and author CSS always wins that tie — so without this override, "hidden" cards
   stayed visually visible even though the attribute was set correctly. */
.post-card[hidden]{display:none;}
.post-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(27,35,64,.1);}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover;}
.post-card .txt{display:flex;flex-direction:column;flex:1;padding:24px 28px 28px;}
.post-card h2{font-size:22px;line-height:1.3;color:var(--blue);margin-bottom:10px;height:2.6em;overflow:hidden;}
.post-card p{color:var(--muted);font-size:15px;line-height:1.7;height:6.8em;overflow:hidden;}
.post-card .card-meta{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:13px;color:var(--muted);}
.post-card .card-meta .avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.post-card .more{display:inline-block;margin-top:auto;padding-top:14px;color:var(--orange);font-weight:600;font-size:15px;}
.no-results{text-align:center;color:var(--muted);font-size:16px;padding:40px 0;}

/* Featured slider: the 3 most recent posts */
.blog-featured{padding:10px 0 20px;}
.blog-featured .wrap{max-width:1180px;}
.feat-slider{display:flex;align-items:center;gap:20px;}
.feat-track{flex:1;position:relative;height:460px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 34px rgba(27,35,64,.08);overflow:hidden;}
.feat-slide{display:none;grid-template-columns:1fr 1fr;align-items:stretch;height:100%;text-decoration:none;color:inherit;}
.feat-slide.is-active{display:grid;}
.feat-media{height:100%;overflow:hidden;}
.feat-media img{width:100%;height:100%;object-fit:cover;display:block;}
.feat-txt{height:100%;padding:40px 44px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;}
.feat-tags{display:flex;gap:10px;margin-bottom:16px;}
.feat-tag{display:inline-block;padding:6px 16px;border-radius:999px;border:1px solid var(--teal);color:var(--teal);font-size:13px;font-weight:600;}
.feat-txt h2{font-size:30px;color:var(--blue);line-height:1.2;margin-bottom:14px;height:3.7em;overflow:hidden;}
.feat-txt p{color:var(--muted);font-size:15.5px;line-height:1.7;height:5.3em;overflow:hidden;}
.feat-byline{margin-top:24px;display:flex;align-items:center;gap:12px;}
.feat-byline .avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.feat-byline strong{display:block;color:var(--ink);font-size:14.5px;font-weight:600;}
.feat-byline span{color:var(--muted);font-size:13px;}
.feat-arrow{width:56px;height:56px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;flex-shrink:0;cursor:pointer;border:none;padding:0;box-shadow:0 10px 24px rgba(63,183,194,.35);line-height:1;}
.feat-arrow:hover{background:#2E9CA6;}
.feat-dashes{display:flex;justify-content:center;gap:8px;margin-top:22px;}
.feat-dash{width:34px;height:4px;border-radius:2px;border:none;padding:0;background:var(--line);cursor:pointer;}
.feat-dash.is-active{background:var(--orange);}

/* Search + author filter */
.blog-filter{padding:0 0 10px;}
.filter-bar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:22px;}
.search-box{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:12px 20px;flex:0 1 320px;color:var(--muted);}
.search-box svg{flex-shrink:0;}
.search-box input{border:none;outline:none;background:none;font:inherit;font-size:15px;color:var(--ink);width:100%;}
.author-pills{display:flex;gap:10px;flex-wrap:wrap;}
.author-pills button{border:1px solid var(--line);background:#fff;color:var(--muted);padding:10px 20px;border-radius:999px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s ease;}
.author-pills button:hover{border-color:var(--teal);color:var(--teal);}
.author-pills button.is-active{background:var(--blue);border-color:var(--blue);color:#fff;}

@media(max-width:860px){
  .post-grid{grid-template-columns:1fr;}
  .feat-track{height:560px;}
  .feat-slide.is-active{display:flex;flex-direction:column;}
  .feat-media{height:220px;flex-shrink:0;}
  .feat-txt{height:auto;flex:1;padding:24px;}
  .feat-txt h2{font-size:24px;}
  .feat-arrow{width:44px;height:44px;font-size:22px;}
  .filter-bar{flex-direction:column;align-items:stretch;}
  .search-box{flex:1 1 auto;}
}

@media(max-width:600px){
  .post-hero h1{font-size:32px;}
  .post-top h1{font-size:32px;}
  .post-body p{font-size:16px;}
  .post-body .lead{font-size:18px;}
  .post-body h2{font-size:24px;margin-top:38px;}
  .post-cta{padding:26px 22px;}
  .author-box{flex-direction:column;text-align:center;}
  /* Featured slider: arrows sat beside the slide and left it ~210px wide on a phone.
     Overlay them on the slide's image instead so the slide gets the full width. */
  .feat-slider{position:relative;gap:0;}
  .feat-arrow{position:absolute;top:110px;transform:translateY(-50%);z-index:2;width:40px;height:40px;font-size:20px;}
  .feat-arrow.prev{left:10px;}
  .feat-arrow.next{right:10px;}
  .feat-tags{flex-wrap:wrap;gap:8px;}
  .feat-tag{white-space:nowrap;}
}
.feat-tag{white-space:nowrap;}
.feat-txt p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;}

/* Sub-headings and small print inside posts */
.post-body h3{font-size:21px;color:var(--ink);margin:32px 0 12px;}
.post-body .post-note{font-size:14px;line-height:1.7;color:var(--muted);background:#fff;border-left:3px solid var(--teal);padding:14px 18px;border-radius:0 10px 10px 0;}
@media(max-width:600px){.post-body h3{font-size:19px;}}

/* ==========================================================================
   Prologue blog: extras for the Technical Series
   --------------------------------------------------------------------------
   Append the whole of this file to the website's css/blog.css.
   It adds only what blog.css does not already style: tables, lists,
   the TL;DR panel and the Napkin Math Box.

   It reuses the site tokens from css/style.css (--blue, --teal, --mint,
   --orange, --gold, --ink, --muted, --paper, --line), so nothing new needs
   defining and the series matches the existing posts.

   Brand guide equivalents, for reference only, if these are ever retuned:
   blue #3d79f2, cyan #49b9cd, mint #59efc0, amber #f2ba52,
   orange #f2784b, charcoal #3d3d40, grey #636363, off white #f2f2f2.
   ========================================================================== */

/* --- Post subtitle ------------------------------------------------------
   The line under the h1. Set in Caveat, the handwriting face the site
   already loads, so the title block echoes the napkin sketches below it. */

.post-hero .post-subtitle {
  margin-top: 8px;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  color: var(--teal);
}

/* --- Key terms ----------------------------------------------------------
   A definition list of the terms the post teaches, in the reader's words.
   It helps a reader skim back to one idea, and it gives search engines and
   answer engines a clean, self-contained definition to quote. */

.post-body .key-terms {
  margin: 40px 0;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.post-body .key-terms h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.post-body .key-terms .key-terms-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.post-body .key-terms dl {
  margin: 0;
}

.post-body .key-terms dt {
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  margin-top: 16px;
}

.post-body .key-terms dt:first-of-type {
  margin-top: 0;
}

.post-body .key-terms dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1d1d1d;
}

/* --- [VERIFY] badge ------------------------------------------------------
   Marks a legal or regulatory claim that MN & Co. have not confirmed yet.
   Deliberately loud, so nothing unverified reaches the website unnoticed.
   Every one of these has to be resolved and removed before publishing. */

.post-body .verify {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(231, 169, 62, .14);
  color: #8a5d12;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Lists. blog.css styles no list at all, so start from scratch. ------- */

.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: #1d1d1d;
}

.post-body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.post-body li::marker {
  color: var(--teal);
}

.post-body li > strong {
  color: var(--ink);
}

/* --- Tables. ------------------------------------------------------------
   Every table is wrapped in .table-scroll so a wide table scrolls sideways
   on a phone instead of breaking the page width. */

.post-body .table-scroll {
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.post-body table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.6;
  color: #1d1d1d;
}

.post-body caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
}

.post-body thead th {
  background: rgba(67, 97, 238, .07);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 2px solid rgba(67, 97, 238, .18);
  white-space: nowrap;
}

.post-body tbody th {
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.post-body tbody td,
.post-body tbody th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.post-body tbody tr:last-child td,
.post-body tbody tr:last-child th {
  border-bottom: 0;
}

/* The totals row at the foot of a cap table. */
.post-body tbody tr.is-total td,
.post-body tbody tr.is-total th {
  background: rgba(47, 166, 176, .07);
  font-weight: 700;
  color: var(--ink);
  border-top: 2px solid rgba(47, 166, 176, .25);
}

/* --- TL;DR ---------------------------------------------------------------
   The two or three line summary that opens every post in the series. */

.post-body .post-tldr {
  margin: 0 0 34px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 30px rgba(27, 35, 64, .05);
}

.post-body .post-tldr h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

.post-body .post-tldr p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
}

/* --- Napkin Math Box -----------------------------------------------------
   The formula table, worked through on the running example. Styled as a
   napkin so it reads as the one thing to screenshot and keep. */

.post-body .napkin-box {
  margin: 40px 0;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(27, 35, 64, .07) 1px, transparent 1px) 0 0/18px 18px,
    var(--paper);
}

.post-body .napkin-box h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--ink);
}

.post-body .napkin-box .napkin-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.post-body .napkin-box .table-scroll {
  margin: 0;
  border-color: rgba(27, 35, 64, .15);
}

.post-body .napkin-box thead th {
  background: rgba(27, 35, 64, .06);
  border-bottom-color: rgba(27, 35, 64, .22);
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 600px) {
  .post-hero .post-subtitle {
    font-size: 26px;
  }

  .post-top .post-subtitle {
    font-size: 26px;
  }

  .post-body ul,
  .post-body ol {
    font-size: 16px;
    padding-left: 20px;
  }

  .post-body table {
    font-size: 14.5px;
  }

  .post-body thead th,
  .post-body tbody td,
  .post-body tbody th {
    padding: 10px 14px;
  }

  .post-body .post-tldr {
    padding: 20px;
  }

  .post-body .post-tldr p {
    font-size: 16.5px;
  }

  .post-body .napkin-box {
    padding: 20px 16px;
  }

  .post-body .napkin-box h2 {
    font-size: 22px;
  }
}

/* --- Table footnote ------------------------------------------------------
   A small caption under a table, for a source line or a sampling note.
   Sits tight under the table it belongs to, not floating as its own note. */

.post-body .table-note {
  margin: -16px 0 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Founder quote ---------------------------------------------------------
   A pull quote with the speaker's photo, name and role. White card with an
   orange left rule, so it reads as a voice, not as another note. */

.post-body .founder-quote {
  margin: 40px 0;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 30px rgba(27, 35, 64, .06);
}
.post-body .founder-quote blockquote {
  margin: 0;
}
.post-body .founder-quote blockquote p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
}
.post-body .founder-quote blockquote p::before { content: "\201C"; }
.post-body .founder-quote blockquote p::after { content: "\201D"; }
.post-body .founder-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
.post-body .founder-quote figcaption img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  margin: 0;
}
.post-body .founder-quote figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .post-body .founder-quote { padding: 22px 20px; }
  .post-body .founder-quote blockquote p { font-size: 18px; }
}
