/* Blog: the index at /blog and the articles in /compare and /guides. Loaded after keeps.css, so every token,
   the nav, buttons and footer come from there. */

body.bp { background: #fff; }   /* the see-through nav sits on white, as on the other pages */
.bp main { background: #fff; color: var(--ink); }
.bp .foot { padding-bottom: clamp(24px, 3vw, 36px); }   /* no buy bar on these pages */

/* ---------- covers: type and the Keeps mark, sized to the card (cqi) ---------- */
.bcov { position: relative; width: 100%; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--blue); color: #fff; }
.bcov b { font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.cv-mark { width: auto; color: currentColor; }

.cv-vs { display: grid; grid-template-columns: 1fr 1fr; }
.cv-vs > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqi; padding: 4cqi; text-align: center; }
.cv-vs b { font-size: 7.6cqi; }
.cv-vs .cv-mark { height: 17cqi; }
.cv-a { background: var(--blue); color: #fff; }
.cv-b { background: var(--ink); color: #fff; }
.cv-cream .cv-b { background: var(--cream); color: var(--ink); }
.cv-tint .cv-b { background: var(--band-tint); color: var(--blue); }
.cv-mist .cv-b { background: #ececef; color: var(--ink); }
.cv-x { position: absolute; left: 50%; top: 50%; width: 12cqi; height: 12cqi; margin: -6cqi 0 0 -6cqi; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 4.2cqi; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 1cqi 3cqi rgba(0, 0, 0, .18); }

.cv-guide .cv-in { position: absolute; inset: 0; padding: 6cqi; display: flex; flex-direction: column; justify-content: space-between; }
.cv-guide .cv-mark { height: 13cqi; align-self: flex-start; }
.bcov::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.cv-guide .cv-t { position: relative; z-index: 1; max-width: 11em; font-size: 8cqi; color: var(--cream); }
.cv-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.2cqi; margin: 0; padding: 0; list-style: none; }
.cv-pills li { padding: .9cqi 2.2cqi; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 2.5cqi; font-weight: 500; }
.cv-pills li:first-child { background: #fff; color: var(--blue); }
.cv-y { position: absolute; right: 4cqi; top: 1cqi; font-size: 24cqi; font-weight: 700; letter-spacing: -.06em; line-height: 1; color: rgba(255, 255, 255, .14); }

/* ---------- blog index ---------- */
.blog { padding-bottom: clamp(72px, 9vw, 128px); }
.blog-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.blog-head h1 { font-size: clamp(64px, 12vw, 168px); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.blog-head .lede { margin-top: clamp(16px, 2.2vw, 28px); color: var(--grey); }

.feature { display: grid; gap: var(--padding-medium); text-decoration: none; color: inherit; }
.feature h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.feature p { margin-top: var(--size-12); font-size: clamp(17px, 1.5vw, 19px); color: var(--grey); }
.f-text .c-kind { margin-bottom: var(--size-12); }
@media (min-width: 900px) { .feature { grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: center; } }

.c-kind { display: block; font-size: 14px; font-weight: 500; color: var(--blue); }
.c-date { display: block; margin-top: var(--size-12); font-size: 14px; color: var(--grey); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-between-chips); margin: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 36px); padding-bottom: var(--padding-small); border-bottom: 1px solid var(--line); }
.filters button { position: relative; min-height: var(--sizing-small); padding: 0 var(--padding-small); border: 0; border-radius: 999px; background: #f3f3f5; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.filters button::after { content: ""; position: absolute; inset: calc((var(--sizing-small) - var(--touch)) / 2) 0; }
.filters button:hover { background: #e8e8ec; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.pcards { display: grid; gap: clamp(40px, 5vw, 56px) var(--padding-medium); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard a { display: block; height: 100%; color: inherit; text-decoration: none; }
.pcard .bcov { margin-bottom: var(--padding-small); }
.pcard h3 { margin-top: var(--size-4); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.pcard p { margin-top: var(--size-8); font-size: 16px; color: var(--grey); line-height: 1.45; }
.pcard.sm h3 { font-size: 19px; }
.pcard.sm p { display: none; }
@media (min-width: 1000px) { .related .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* hover: the cover lifts a little, the title underlines */
.bcov { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pcard a:hover .bcov, .feature:hover .bcov { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0, 17, 38, .35); }
.pcard a:hover h3, .feature:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bcov { transition: none; } .pcard a:hover .bcov, .feature:hover .bcov { transform: none; } }

/* ---------- article ---------- */
.post-head { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(28px, 3.5vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--size-8); font-size: 15px; color: var(--grey); }
.crumbs a { color: var(--blue); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.post-head h1 { margin-top: var(--size-12); max-width: 17em; font-size: clamp(36px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.042em; line-height: 1.02; }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--size-4) 0; margin-top: var(--padding-medium); font-size: 15px; color: var(--grey); }
.post-meta span + span::before { content: "·"; margin: 0 var(--size-8); }
.post-cover { margin: 0; }
.post-cover .bcov { border-radius: var(--r-lg); }
@media (min-width: 900px) { .post-cover .bcov { aspect-ratio: 2.35 / 1; } .post-cover .cv-vs b { font-size: 6cqi; } .post-cover .cv-vs .cv-mark { height: 12cqi; } .post-cover .cv-x { width: 9cqi; height: 9cqi; margin: -4.5cqi 0 0 -4.5cqi; font-size: 3.2cqi; } }

.post-grid { display: grid; margin-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 128px); }
.toc { display: none; }
@media (min-width: 1100px) {
  .post-grid { grid-template-columns: 200px minmax(0, 740px); gap: 72px; justify-content: center; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; font-size: 14px; }
  .toc p { margin-bottom: var(--size-12); font-weight: 700; }
  .toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: var(--size-4) 0 var(--size-4) var(--padding-small); margin-left: -1px; border-left: 2px solid transparent; color: var(--grey); text-decoration: none; line-height: 1.35; }
  .toc a:hover { color: var(--ink); }
  .toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--blue); }
}

.prose { min-width: 0; max-width: 740px; width: 100%; margin: 0 auto; font-size: clamp(17px, 1.3vw, 18.5px); line-height: 1.65; color: #1d1d1f; letter-spacing: -.005em; }
.prose section { scroll-margin-top: 84px; }
.prose > p + section, .prose section + section { margin-top: clamp(44px, 5vw, 64px); }
.prose h2 { margin-bottom: var(--padding-small); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .4em; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p, .prose table + p, .prose .t-wrap + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0 0; padding-left: 1.3em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .checked { display: inline-block; margin-top: 1.4em; padding: var(--size-8) var(--size-12); border-radius: var(--r-sm); background: #f3f3f5; font-size: 14.5px; line-height: 1.45; color: var(--grey); }
.prose .more-link { margin-top: var(--padding-small); }
.prose .more-link a { font-weight: 700; text-decoration: none; }
.prose .more-link a:hover { text-decoration: underline; }

/* tables */
.prose table { width: 100%; margin-top: 1.5em; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { padding: var(--size-12) var(--padding-small) var(--size-12) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { padding-top: 0; font-size: 14px; font-weight: 500; color: var(--grey); border-bottom: 1.5px solid var(--ink); }
.prose thead th strong { color: var(--ink); }
.prose tbody th { font-weight: 700; color: var(--ink); }
.prose tbody tr:last-child > * { border-bottom: 0; }

/* wide tables: scroll sideways, first column stays put */
.t-wrap { margin: 1.5em calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 0 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.t-wrap table { margin: 0; min-width: 720px; font-size: 14.5px; }
/* the scroller runs edge to edge; the first column is pinned at its left edge and keeps the text on the page margin */
.t-wrap tbody th, .t-wrap thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; padding-left: var(--gutter); }
.t-wrap th:first-child { min-width: 8.5rem; box-shadow: inset -1px 0 0 var(--line); }
.t-wrap td, .t-wrap thead th + th { padding-left: var(--size-12); }
@media (min-width: 900px) { .t-wrap { margin-left: 0; margin-right: 0; padding: 0; } .t-wrap tbody th, .t-wrap thead th:first-child { left: 0; padding-left: 0; } .t-wrap th:first-child { box-shadow: none; } }

/* three-column tables become one card per row on phones */
@media (max-width: 699px) {
  .prose .t-stack, .t-stack tbody, .t-stack tr, .t-stack th, .t-stack td { display: block; }
  .t-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .t-stack tr { padding: var(--padding-small); border-radius: var(--r-md); background: #f5f5f7; }
  .t-stack tr + tr { margin-top: var(--size-12); }
  .prose .t-stack tbody th { padding: 0 0 var(--size-8); border: 0; font-size: 17px; }
  .prose .t-stack td { display: grid; grid-template-columns: minmax(5.5em, 32%) 1fr; gap: var(--size-12); padding: var(--size-8) 0 0; border: 0; }
  .t-stack td::before { content: attr(data-label); font-size: 14px; font-weight: 700; color: var(--grey); }
  .prose .t-stack tbody tr:last-child > * { border: 0; }
}

/* FAQ */
.qa { padding: var(--padding-small) 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.prose .qa h3 { margin: 0; font-size: 18px; }
.qa p { margin-top: var(--size-8); }

/* the closing call to action */
.post-cta { position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.post-cta .pc-lead { max-width: 14em; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; color: #fff; }
.prose .post-cta .btn { margin-top: var(--padding-medium); color: var(--blue); text-decoration: none; }
.prose .post-cta p + p { margin-top: 0; }

/* related posts */
.related { padding: clamp(64px, 8vw, 104px) 0; background: var(--band-tint); }
.related h2 { margin-bottom: clamp(28px, 3.5vw, 44px); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
