/* NotchBay blog post design layer (shared by all posts).
   Loads AFTER each post's inline <style>, so these rules win.
   Language: type-on-white, 1px hairlines, brand red #F34B38 accents,
   Instrument Serif italic signatures, tokenized 150ms hovers. */

:root {
  --p-ink: #1d1d1f;          /* headings: primary */
  --p-body: #333336;         /* body: secondary (hierarchy without weight) */
  --p-mut: #6e6e73;
  --p-faint: #86868b;
  --p-line: rgba(0, 0, 0, .08);
  --p-line-strong: rgba(0, 0, 0, .16);
  --p-red: #F34B38;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-hover: 150ms ease;
}

/* ---------- reading progress: 2px, compositor-only ---------- */
.rprog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 260;
  background: var(--p-red); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .rprog { animation: rprogfill linear both; animation-timeline: scroll(root); }
  @keyframes rprogfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- page grid: 650px measure + 220px rail ---------- */
main.wrap { max-width: 1024px; margin: 0 auto; padding: 140px 24px 0; }
.phead650 { max-width: none; } /* header spans the full page width incl. the rail side */
.playout { display: grid; grid-template-columns: minmax(0, 650px) 220px; gap: 72px; justify-content: start; }
.pcol { min-width: 0; max-width: 650px; }
@media (max-width: 1099px) { .playout { grid-template-columns: minmax(0, 650px); } .prail { display: none; } }

/* ---------- header anatomy ---------- */
/* the posts' inline CSS styles the bare `nav` element as the fixed black pill;
   these two are semantic <nav>s and must fully reset that */
nav.pcrumb, nav.ptoc {
  position: static; top: auto; left: auto; transform: none;
  background: transparent; color: inherit; border-radius: 0; padding: 0;
  max-width: none; z-index: auto; display: block; box-shadow: none;
}
nav.pcrumb::before, nav.pcrumb::after, nav.ptoc::before, nav.ptoc::after { display: none; }
.pcrumb { font-size: 13px; color: var(--p-faint); margin-bottom: 22px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pcrumb a { color: var(--p-faint); transition: color var(--p-hover); }
.pcrumb a:hover { color: var(--p-ink); }
.pcrumb .sep { color: rgba(0,0,0,.25); }
.pkick { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-red); margin-bottom: 14px; }
.pkick .kmeta { font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--p-mut); }
.pkick .dot { color: rgba(0,0,0,.3); padding: 0 6px; font-weight: 400; }
h1.pt {
  margin: 0; font-size: clamp(34px, 2.6vw + 20px, 48px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; color: var(--p-ink);
  text-wrap: balance;
}
p.lede { margin-top: 18px; font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--p-mut); max-width: 46em; }
p.lede b { font-weight: 600; color: var(--p-ink); }
.pbyrow {
  display: flex; align-items: center; gap: 11px; margin-top: 30px; padding-bottom: 26px;
  border-bottom: 1px solid var(--p-line); font-size: 13px; color: var(--p-faint);
}
.pbyrow img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.pbyrow b { font-weight: 600; color: var(--p-ink); }
.pbyrow .dot { color: rgba(0,0,0,.25); padding: 0 2px; }

/* ---------- hero mesh: the post's visual, no photography needed ---------- */
.phero {
  position: relative; overflow: hidden; border-radius: 16px; margin: 36px 0 0;
  aspect-ratio: 21 / 9; background: #ececee;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
@media (max-width: 700px) { .phero { aspect-ratio: 16 / 10; border-radius: 12px; } }
.phero .blooms { position: absolute; inset: -22%; }
.phero .grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.phero .word {
  position: absolute; left: 28px; bottom: 2px; z-index: 2;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  color: rgba(255, 255, 255, .5); mix-blend-mode: overlay;
  font-size: clamp(64px, 9vw, 120px); letter-spacing: -0.02em; line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
  .phero .blooms { animation: pdrift 18s ease-in-out infinite alternate; }
  @keyframes pdrift {
    from { transform: rotate(-2deg) scale(1.02) translate(-1%, 0); }
    to { transform: rotate(2deg) scale(1.07) translate(1%, 1%); }
  }
}

/* ---------- key takeaways: hairline block, GEO-extractable ---------- */
.ptake { border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); padding: 26px 0; margin: 40px 0 0; }
.ptake h2 { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--p-faint); margin: 0 0 14px !important; line-height: 1 !important; }
.ptake ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ptake li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.5; color: var(--p-body); }
.ptake li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--p-red); }

/* ---------- article body ---------- */
article { margin-top: 44px; font-size: 18px; line-height: 1.6; color: var(--p-body); }
article p { margin: 0 0 1.45em; text-wrap: pretty; }
article section { margin-bottom: 8px; }
article h2 {
  font-size: 27px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15;
  color: var(--p-ink); margin: 58px 0 16px; scroll-margin-top: 96px; position: relative;
}
article h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--p-ink); margin: 38px 0 12px; scroll-margin-top: 96px; }
article h2 + h3 { margin-top: 22px; }
article a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2.5px; text-decoration-color: rgba(0,0,0,.25); transition: text-decoration-color var(--p-hover); }
article a:hover { text-decoration-color: var(--p-red); }
article strong { font-weight: 650; color: var(--p-ink); }
article ul, article ol { margin: 0 0 1.45em; padding-left: 24px; }
article li { margin-bottom: 10px; }
/* hover anchor on section headings */
article h2 .hanchor {
  position: absolute; left: -26px; top: 0; text-decoration: none;
  color: rgba(0,0,0,.28); opacity: 0; transition: opacity var(--p-hover), color var(--p-hover);
  font-weight: 500; font-size: 24px;
}
article h2:hover .hanchor { opacity: 1; }
article h2 .hanchor:hover { color: var(--p-red); }
@media (max-width: 720px) { article h2 .hanchor { display: none; } }
/* drop cap: the signature move, serif italic red */
.dropcap::first-letter {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 76px; line-height: .82; color: var(--p-red);
  float: left; margin: 6px 10px 0 0;
}

/* ---------- pull-stat (the existing .stat, upgraded) ---------- */
article .stat { margin: 34px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--p-red); font-size: 17px; line-height: 1.55; color: var(--p-ink); }
article .stat b { font-weight: 650; }

/* ---------- tables: hairline-only ---------- */
.tbl-wrap { margin: 40px 0 24px; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--p-faint); padding: 0 16px 12px 0; border-bottom: 1px solid var(--p-line-strong); }
table.data td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--p-line); vertical-align: top; color: var(--p-body); }
table.data td:first-child { font-weight: 500; color: var(--p-ink); }

/* ---------- FAQ: hairline items, always visible (GEO-safe) ---------- */
article .faq-item { margin: 0; padding: 20px 0; border-top: 1px solid var(--p-line); }
article .faq-item:last-child { border-bottom: 1px solid var(--p-line); }
article .faq-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
article .faq-item p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--p-mut); max-width: 60ch; }

/* ---------- rail: TOC + product card ---------- */
.prail { position: relative; }
/* 67px aligns the "On this page" label with the takeaways' "The short version"
   label across the gutter (ptake margin 40 + border 1 + padding 26) */
.prail-inner { position: sticky; top: 104px; padding-top: 67px; display: flex; flex-direction: column; gap: 36px; }
.ptoc h5, .prail h5 { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--p-faint); margin: 0 0 14px; }
.ptoc ol { list-style: none; margin: 0; padding: 0; }
.ptoc li { padding: 0; }
.ptoc a {
  display: block; position: relative; padding: 6px 0 6px 0; font-size: 13px; line-height: 1.45;
  color: var(--p-faint); text-decoration: none; transition: color var(--p-hover);
}
.ptoc a:hover { color: var(--p-ink); }
.ptoc a.on { color: var(--p-ink); font-weight: 550; }
.ptoc a.on::before { content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 2px; height: 14px; background: var(--p-red); border-radius: 1px; }
/* rail product card: quiet, dismiss-free, zero-CLS (space always reserved) */
.prail .prod { border: 1px solid var(--p-line); border-radius: 16px; background: #fff; overflow: hidden; }
.prail .prod .phead2 {
  position: relative; height: 84px;
  background:
    radial-gradient(72% 92% at 8% 72%, rgba(250,227,223,.5) 0%, rgba(250,227,223,0) 62%),
    radial-gradient(58% 55% at 90% 2%, rgba(170,122,213,.85) 0%, rgba(170,122,213,.42) 30%, rgba(170,122,213,0) 60%),
    radial-gradient(115% 92% at 48% 13%, rgba(243,118,96,.74) 0%, rgba(245,132,108,.5) 24%, rgba(246,148,124,.24) 48%, rgba(247,162,140,0) 73%),
    linear-gradient(125deg, #f8d6d0 0%, #f6d1cb 30%, #f8dfd9 60%, #fcefec 82%, #fef6f4 100%);
}
.prail .prod .isl2 { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 74px; height: 17px; background: #000; border-radius: 0 0 9px 9px; }
.prail .prod .isl2::before, .prail .prod .isl2::after { content: ""; position: absolute; top: 0; width: 5px; height: 5px; }
.prail .prod .isl2::before { left: -5px; background: radial-gradient(circle at 0 100%, transparent 4.5px, #000 5px); }
.prail .prod .isl2::after { right: -5px; background: radial-gradient(circle at 100% 100%, transparent 4.5px, #000 5px); }
.prail .prod .pbody2 { padding: 14px 16px 16px; }
.prail .prod .pbody2 b { font-size: 13.5px; font-weight: 650; color: var(--p-ink); letter-spacing: -0.01em; }
.prail .prod .pbody2 p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--p-mut); }
.prail .prod .dl2 {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  background: var(--p-red); color: #fff; font-size: 12.5px; font-weight: 600;
  border-radius: 100px; padding: 7px 14px; text-decoration: none;
  transition: background var(--p-hover);
}
.prail .prod .dl2:hover { background: #e13d2b; }
.prail .prod .dl2 svg { width: 10px; height: 12px; }

/* ---------- author card ---------- */
.pauthor { margin-top: 72px; border-top: 1px solid var(--p-line); padding-top: 30px; display: flex; gap: 14px; align-items: flex-start; }
.pauthor img { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; }
.pauthor .ainfo b { display: block; font-size: 15px; font-weight: 650; color: var(--p-ink); }
.pauthor .ainfo span { display: block; margin-top: 2px; font-size: 13px; color: var(--p-faint); }
.pauthor .ainfo p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--p-mut); max-width: 50ch; }
.pauthor .arow { display: flex; gap: 10px; margin-top: 12px; }
.pauthor .apill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border: 1px solid var(--p-line-strong); border-radius: 100px; font-size: 12.5px; font-weight: 550;
  color: var(--p-ink); text-decoration: none; background: none; cursor: pointer; font-family: inherit;
  transition: background var(--p-hover);
}
.pauthor .apill:hover { background: rgba(0,0,0,.04); }
.pauthor .apill svg { width: 12px; height: 12px; }

/* ---------- read next: mesh cards ---------- */
.pnext { margin-top: 72px; border-top: 1px solid var(--p-line); padding-top: 40px; }
.pnext h2 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; color: var(--p-ink); margin: 0 0 22px; }
.pnext h2 .serif { font-size: 1.1em; }
.pnext .ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .pnext .ngrid { grid-template-columns: 1fr; } }
.pnext a.ncard { display: block; text-decoration: none; }
.pnext .nmesh { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: #ececee; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pnext .nmesh .blooms { position: absolute; inset: -20%; transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.pnext .ncard:hover .nmesh .blooms { transform: scale(1.04); }
.pnext .nmesh .word { position: absolute; left: 14px; bottom: 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: rgba(255,255,255,.5); mix-blend-mode: overlay; font-size: 34px; line-height: 1.25; }
.pnext .ncat { margin-top: 13px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--p-red); }
.pnext .ntitle { margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; color: var(--p-ink); transition: color var(--p-hover); }
.pnext .ncard:hover .ntitle { color: var(--p-red); }

/* ---------- end CTA: aurora-headed closing card (pricing DNA) ---------- */
aside.endcta {
  margin-top: 72px; border: 1px solid var(--p-line); border-radius: 20px;
  background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 0; display: block;
}
.ecta-head {
  position: relative; height: 92px;
  background:
    radial-gradient(72% 92% at 8% 72%, rgba(250,227,223,.5) 0%, rgba(250,227,223,0) 62%),
    radial-gradient(58% 55% at 90% 2%, rgba(170,122,213,.85) 0%, rgba(170,122,213,.42) 30%, rgba(170,122,213,0) 60%),
    radial-gradient(115% 92% at 48% 13%, rgba(243,118,96,.74) 0%, rgba(245,132,108,.5) 24%, rgba(246,148,124,.24) 48%, rgba(247,162,140,0) 73%),
    linear-gradient(125deg, #f8d6d0 0%, #f6d1cb 30%, #f8dfd9 60%, #fcefec 82%, #fef6f4 100%);
}
.ecta-head .isl3 { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #000; border-radius: 0 0 13px 13px; }
.ecta-head .isl3::before, .ecta-head .isl3::after { content: ""; position: absolute; top: 0; width: 7px; height: 7px; }
.ecta-head .isl3::before { left: -7px; background: radial-gradient(circle at 0 100%, transparent 6.5px, #000 7px); }
.ecta-head .isl3::after { right: -7px; background: radial-gradient(circle at 100% 100%, transparent 6.5px, #000 7px); }
.ecta-body {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 24px 28px 26px; flex-wrap: wrap;
}
.ecta-copy b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--p-ink); }
.ecta-copy p { margin: 8px 0 0; font-size: 14.5px; color: var(--p-mut); max-width: 56ch; line-height: 1.55; }
.ecta-copy .cfine { display: block; margin-top: 10px; font-size: 12.5px; color: var(--p-faint); }
.dl3 {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--p-red); color: #fff; font-size: 14.5px; font-weight: 600;
  border-radius: 100px; padding: 13px 24px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(243,75,56,.35);
  transition: background var(--p-hover);
}
.dl3:hover { background: #e13d2b; }
.dl3:active { transform: scale(.97); }
.dl3 svg { width: 13px; height: 15px; }

/* ---------- entrance: header stagger, in-body visuals only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-post .pstagger { opacity: 0; transform: translateY(12px); animation: pIn 550ms var(--p-ease) both; }
  .js-post .pstagger:nth-child(1) { animation-delay: 0ms; } .js-post .pstagger:nth-child(2) { animation-delay: 60ms; }
  .js-post .pstagger:nth-child(3) { animation-delay: 120ms; } .js-post .pstagger:nth-child(4) { animation-delay: 180ms; }
  .js-post .pstagger:nth-child(5) { animation-delay: 240ms; } .js-post .pstagger:nth-child(6) { animation-delay: 300ms; }
  @keyframes pIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .js-post .prev { opacity: 0; transform: translateY(16px); transition: opacity 550ms var(--p-ease), transform 550ms var(--p-ease); }
  .js-post .prev.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* keep the old endnote/readnext hidden once replaced (safety net) */
.endnote { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--p-line); font-size: 14px; color: var(--p-mut); line-height: 1.65; }
.sources { margin-top: 20px; font-size: 13px; color: var(--p-faint); }
.sources a { color: var(--p-mut); }
