.post {
  --post-rail:192px;
  --post-gap:48px;
  --post-text:704px;
  --post-wide:944px;
  padding-block: clamp(28px, 4vw, 48px) var(--sp-20);
}
.post-grid {
  display: grid;
  grid-template-columns: var(--post-rail) minmax(0, var(--post-wide));
  column-gap: var(--post-gap);
  align-items: start;
}
.post-rail {
  position: sticky;
  top: 96px;
  grid-row: 1/span 2;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 4px 0 24px;
  scrollbar-width: thin;
}
.post-main {
  min-width: 0;
}
.post-main > *,
.post-body > * {
  max-width: var(--post-text);
}
.post-main > .post-body,
.post-body > .is-wide {
  max-width: var(--post-wide);
}
.post-rail-label {
  margin: 0 0 14px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-toc-box > summary {
  display: block;
  list-style: none;
  pointer-events: none;
}
.post-toc-box > summary::-webkit-details-marker {
  display: none;
}
.post-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-left: 1px solid var(--line-soft);
}
.post-nav a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms, border-color 160ms;
}
.post-nav a:hover {
  color: var(--ink);
}
.post-nav a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.post-nav a.is-active {
  color: var(--ink);
  font-weight: 560;
  border-left-color: var(--primary);
}
.post-nav .is-product a {
  color: var(--primary-text);
}
.post-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--faint);
}
.post-crumbs a {
  color: inherit;
  text-decoration: none;
}
.post-crumbs a:hover {
  color: var(--ink);
}
.post-kicker {
  margin: 0 0 14px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.post-title {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -.032em;
  font-weight: 680;
  text-wrap: balance;
}
.post-lede {
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 28px 0 0;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--faint);
}
.post-byline b {
  font-weight: 560;
  color: var(--ink);
}
.post-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font: 700 13px var(--font-sans);
}
.post-body {
  padding-top: 40px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}
.post-body > p,
.post-body > ul,
.post-body > ol {
  margin: 0 0 24px;
  text-wrap: pretty;
}
.post-body h2 {
  margin: 72px 0 20px;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -.024em;
  font-weight: 660;
  text-wrap: balance;
  scroll-margin-top: 96px;
}
.post-body > h2:first-child {
  margin-top: 0;
}
.post-body h3 {
  margin: 40px 0 12px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.015em;
  font-weight: 640;
}
.post-body > ul,
.post-body > ol {
  padding-left: 1.15em;
  display: grid;
  gap: 10px;
}
.post-body li::marker {
  color: var(--faint);
}
.post-body a:not(.btn) {
  color: var(--primary-text);
  text-decoration: underline;
  text-decoration-color: var(--primary-line);
  text-underline-offset: 3px;
}
.post-body a:not(.btn):hover {
  text-decoration-color: currentColor;
}
.post-body strong {
  font-weight: 620;
}
.post-fig {
  margin: 36px 0;
}
.post-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.post-fig figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.post-fig--narrow {
  max-width: 420px !important;
}
.post-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 40px;
}
.post-map section {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}
.post-map h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.post-map ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15px;
  line-height: 1.4;
}
.post-map a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--ink) !important;
  text-decoration: none !important;
}
.post-map a:hover {
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text) !important;
}
.post-map p {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.post-map .is-alert p {
  color: var(--primary-text);
}
.post-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}
.post-pair > div {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  font-size: 17px;
  line-height: 1.5;
}
.post-pair > div:last-child {
  background: var(--primary-dim);
}
.post-pair b {
  display: block;
  margin-bottom: 8px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-pair > div:last-child b {
  color: var(--primary-text);
}
.post-quote {
  margin: 32px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
}
.post-quote p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}
.post-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}
.post-check {
  list-style: none;
  counter-reset: c;
  margin: 28px 0 0;
  padding: 0 !important;
  display: grid;
  gap: 0 !important;
}
.post-check li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 18px;
  line-height: 1.55;
}
.post-check li::before {
  content: counter(c);
  width: 32px;
  height: 32px;
  margin-top: -2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px var(--font-sans);
}
.post-check b {
  display: block;
  font-weight: 620;
}
.post-check span {
  color: var(--muted);
}
.post-product {
  margin: 80px 0 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: oklch(from var(--primary) l c h / .06);
}
.post-product .pp-label {
  margin: 0 0 18px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.post-body .post-product h2 {
  margin: 0 0 16px;
}
.post-product > p {
  max-width: 640px;
  margin: 0 0 12px;
}
.pp-rows {
  display: grid;
  margin-top: 12px;
}
.pp-body {
  max-width: var(--post-text);
  font-size: 18px;
  line-height: 1.6;
}
.pp-body > p,
.pp-body > ul,
.pp-body > ol {
  margin: 0 0 18px;
}
.pp-body > ul,
.pp-body > ol {
  padding-left: 1.15em;
  display: grid;
  gap: 8px;
}
.pp-body > .post-widget {
  max-width: none;
  margin: 24px 0;
}
.pp-body > :last-child {
  margin-bottom: 0;
}
.pp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid oklch(from var(--primary) l c h / .16);
}
.post-body .pp-row h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.pp-row p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.pp-card {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.pp-card small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font: 500 12px var(--font-mono);
  color: var(--faint);
}
.pp-card b {
  display: block;
  margin-bottom: 4px;
  font-weight: 620;
}
.pp-card .pp-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--important-fill);
  color: var(--important-text);
  font-size: 12px;
  font-weight: 560;
}
.pp-card .pp-ask {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 10px auto;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 13.5px;
}
.pp-diff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  font-size: 13px;
}
.pp-diff s {
  color: var(--faint);
}
.pp-diff i {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-style: normal;
  font-weight: 560;
}
.pp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid oklch(from var(--primary) l c h / .16);
}
.pp-foot p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.post-faq {
  border-top: 1px solid var(--line-soft);
}
.post-faq details {
  border-bottom: 1px solid var(--line-soft);
}
.post-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.post-faq summary::-webkit-details-marker {
  display: none;
}
.post-faq summary::after {
  content: "+";
  flex: none;
  color: var(--faint);
  font-weight: 400;
}
.post-faq details[open] summary::after {
  content: "−";
}
.post-faq summary:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.post-faq details p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.post-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}
.post-next a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 160ms, transform 160ms;
}
.post-next a:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.post-next small {
  font: 500 12px var(--font-mono);
  color: var(--faint);
}
.post-next span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.post-body .post-answer {
  display: grid;
  gap: 8px;
  margin: 0 0 40px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
}
.post-body .post-answer p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.post-body .post-answer .post-answer-label {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.post-body .post-answer + .post-widget {
  margin-top: 0;
}
.post-body .post-widget table {
  font-size: 15px;
}
.post-body .post-widget th {
  font-size: 12px;
}
.post-widget {
  margin: 28px 0 36px;
}
.post-widget > :first-child {
  margin-top: 0;
}
.post-widget > :last-child {
  margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  .post-nav a,
  .post-next a {
    transition: none;
  }
  .post-next a:hover {
    transform: none;
  }
}
@media (max-width: 1199px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--post-text);
    margin-inline: auto;
  }
  .post-main {
    display: contents;
  }
  .post-head {
    order: 1;
  }
  .post-rail {
    order: 2;
    position: static;
    grid-row: auto;
    max-height: none;
    overflow: visible;
    margin: 28px 0 0;
    padding: 0;
  }
  .post-toc-box {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
  }
  .post-toc-box > summary {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 16px 18px;
  }
  .post-toc-box > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid var(--faint);
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms;
  }
  .post-toc-box[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
  }
  .post-toc-box > summary:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
  }
  .post-toc-box .post-nav {
    margin: 0 18px 14px;
    border-left: 0;
  }
  .post-toc-box .post-nav a {
    padding-left: 0;
    border-left: 0;
    font-size: 15px;
  }
  .post-body {
    order: 3;
  }
  .post-main > .post-body,
  .post-body > .is-wide {
    max-width: none;
  }
}
@media (max-width: 767px) {
  .post-lede {
    font-size: 19px;
  }
  .post-body {
    font-size: 18px;
  }
  .post-body h2 {
    margin-top: 56px;
    font-size: 26px;
  }
  .post-body h3 {
    font-size: 21px;
  }
  .post-pair,
  .post-next {
    grid-template-columns: 1fr;
  }
  .post-map {
    grid-template-columns: 1fr;
  }
  .pp-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
