/*
  Buffer blog (/blog, /blog/category/*, /blog/author/*, /blog/{slug}).

  Built from the blog design file ("Buffer Blog"): measurements, colours and
  copy follow it. The design sizes everything against a full-width container
  (cqw units and @container breakpoints); here that container is the
  viewport, so cqw becomes vw and the container queries become media queries
  at the same widths. Breakpoints: >= 1024 desktop · 768–1023 tablet · < 768.

  Tokens, nav, footer, buttons, tactile press states, segmented controls and
  the aurora glows come from buffer-site.css. This file adds the blog's own
  pieces and the few places its design differs from the landing page.
*/

/* Fonts, served from this site (no request to Google Fonts on blog pages).
   The same files Google serves: Inter is variable (one file, every weight);
   Fraunces is only the italic 500 used by pull quotes. Licences in
   assets/fonts/LICENSE.txt. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.blog {
  font-variant-numeric: tabular-nums;
  --eyebrow: #9A5822; /* darker copper: AA contrast for 12px labels on white and cream */
}

.blog-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.blog li::marker { color: var(--copper); }

/* ---------------------------------------------------------------- nav */

.nav--blog { z-index: 30; }
.nav--blog .nav-bar { padding: 0 10px 0 clamp(16px, 2vw, 24px); }

.nav--blog .btn-nav {
  height: clamp(36px, 4vw, 40px);
  padding: 0 clamp(14px, 1.6vw, 18px);
  font-size: clamp(13px, 1.2vw, 14px);
}

.blog-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .blog-menu-btn { display: flex; }
}

/* Mobile menu: a white card over a dimmed page (native <dialog>). */
.blog-sheet {
  position: fixed;
  inset: 12px 12px auto;
  width: auto;
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 10px 10px 12px;
  border: 0;
  border-radius: 24px;
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: var(--shadow-float);
  overflow: auto;
}

.blog-sheet[open] { animation: blog-sheet-in .25s ease-out; }
.blog-sheet::backdrop {
  background: rgba(21, 32, 61, .34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: blog-fade-in .25s ease-out;
}

@keyframes blog-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes blog-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .blog-sheet[open], .blog-sheet::backdrop { animation: none; }
}

.blog-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding-left: 6px;
}

.blog-sheet-head img { display: block; width: auto; height: 20px; }
.blog-sheet-actions { display: flex; align-items: center; gap: 6px; }
.blog-sheet-actions .btn { height: 36px; padding: 0 14px; font-size: 13px; }

.blog-sheet-close {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.blog-sheet-links { display: flex; flex-direction: column; margin-top: 8px; }

.blog-sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 10px;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
  text-decoration: none;
}

.blog-sheet-link .i { color: var(--text-3); }

@media (hover: hover) and (pointer: fine) {
  .blog-sheet-link:hover { background: var(--surface-2); }
}

/* ------------------------------------------------------- preview banner */

.blog-banner {
  position: relative;
  z-index: 31;
  margin: 0;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.blog-banner a { color: var(--cream); font-weight: 600; text-underline-offset: 3px; }
.blog-banner ~ .nav { top: 56px; }

/* ----------------------------------------------------------- index hero */

.blog-hero {
  position: relative;
  margin: clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px) 0;
  border-radius: clamp(24px, 3vw, 28px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #FBEADB 0%, #F8F3EE 55%, #FFFFFF 100%);
  padding: clamp(108px, 13vw, 152px) clamp(16px, 4vw, 48px) clamp(92px, 10vw, 112px);
}

.blog-hero .glow-a { --t: 1.2; top: -200px; left: -120px; width: 720px; height: 720px; }
.blog-hero .glow-b { --t: 1.2; top: -40px; right: -160px; width: 760px; height: 760px; }

.blog-hero .glow-c {
  --t: 1.2;
  top: -80px;
  right: 260px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle closest-side, rgba(227, 160, 106, .5) 0%, rgba(227, 160, 106, .25) 45%, rgba(227, 160, 106, 0) 100%);
  animation: driftC 19s var(--drift) -6s infinite;
}

.blog-hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
}

.blog-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.blog-hero-copy .blog-eyebrow a { color: inherit; text-decoration: none; }

.blog-hero-title {
  max-width: 640px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--navy);
  text-wrap: balance;
}

.blog-hero-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

@media (max-width: 1023px) {
  .blog-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Author pages put a portrait beside the name. */
.blog-hero-person { display: flex; align-items: center; gap: 18px; }

.blog-hero-avatar {
  flex: none;
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach);
  box-shadow: var(--shadow-card);
}

.blog-hero-role { font-size: 15px; line-height: 1.5; color: var(--text-2); }

.blog-hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ------------------------------------------------------- index toolbar */

.blog-main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: -56px auto 0;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* Author pages have no filter card to overlap the hero. */
.blog-main--plain { margin-top: 0; }
.blog-main--plain .blog-results { margin-top: 32px; }

.blog-toolbar {
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-2);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 48px 0 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  -webkit-appearance: none;
  appearance: none;
}

.blog-search-input:focus-visible { outline-offset: 2px; }
.blog-search-input::placeholder { color: var(--text-3); opacity: 1; }
.blog-search-input::-webkit-search-cancel-button,
.blog-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.blog-search-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-segment);
}

.blog-search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
}

.blog-audience .seg-opt { text-decoration: none; }

.blog-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-chip {
  height: 36px;
  padding: 0 14px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(21, 32, 61, .14);
  background: #FFFFFF;
  color: var(--navy-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.blog-chip[aria-current] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

@media (hover: hover) and (pointer: fine) {
  .blog-chip:not([aria-current]):hover { background: var(--surface-2); }
}

[data-press="chip"].is-pressed {
  transform: scale(calc(1 - .04 * var(--m))) !important;
  transition: transform .09s ease-out !important;
}

@media (max-width: 767px) {
  .blog-toolbar-row { grid-template-columns: minmax(0, 1fr); }
  .blog-audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-audience .seg-opt { padding: 0; justify-content: center; }
}

.blog-results {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.blog-results-label { font-size: 14px; color: var(--text-2); }

.blog-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}

.blog-featured { margin-top: 20px; }

.blog-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

.blog-more {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-secondary {
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(21, 32, 61, .12);
  background: #FFFFFF;
  color: var(--navy);
}

@media (hover: hover) and (pointer: fine) {
  [data-btn="secondary"]:hover {
    background: var(--surface-2);
    transform: translateY(calc(-1px * var(--m)));
  }
}

.blog-more-label { font-size: 13px; color: var(--text-2); }

.blog-empty {
  margin-top: 20px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.blog-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--peach);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-empty h2 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
}

.blog-empty p {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.blog-empty .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- cards */

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.post-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
}

.post-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge .i { stroke-width: 2; }
.badge--employers { background: var(--navy); color: var(--cream); }
.badge--employees { background: var(--peach); color: var(--navy-2); }

.post-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.post-card-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  text-wrap: pretty;
}

.post-card-title a { color: inherit; text-decoration: none; }

/* The title link stretches over the whole card. */
.post-card [data-stretch]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card:has([data-stretch]:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.post-card [data-stretch]:focus-visible { outline: none; }

.post-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.post-card-arrow { display: inline-flex; color: var(--navy); }
.post-card-arrow .i, .post-card-read .i { transition: transform .2s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-card-arrow .i,
  .post-card:hover .post-card-read .i { transform: translateX(calc(3px * var(--m))); }
}

/* Featured: cover beside the text. */
.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 28px;
}

.post-card--featured .post-card-cover { aspect-ratio: auto; min-height: 380px; }

.post-card--featured .post-card-body { padding: 40px; gap: 18px; }
.post-card--featured .post-meta { gap: 12px; }

.post-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(21, 32, 61, .25);
}

.post-card--featured .post-card-title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.post-card--featured .post-card-excerpt {
  font-size: 17px;
  line-height: 1.6;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-wrap: pretty;
}

.post-card--featured .post-card-foot { padding-top: 10px; flex-wrap: wrap; gap: 16px; }
.post-card--featured .post-time { font-size: 14px; }

.post-card-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .post-card--featured .post-card-body { padding: 28px; }
}

@media (max-width: 767px) {
  .post-card--featured { grid-template-columns: minmax(0, 1fr); }
  .post-card--featured .post-card-cover { min-height: 0; aspect-ratio: 16 / 10; }
  .post-card--featured .post-card-body { padding: 24px; }
}

/* ---------------------------------------------------------------- covers */

/* Audience-tinted ground behind every cover; it shows on its own when a post
   has no image yet. */
.cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FBE9DA 0%, #F8F3EE 100%);
}

.cover--employers { background: linear-gradient(135deg, #E6E9F0 0%, #F4F3EF 100%); }
.cover--everyone { background: linear-gradient(135deg, #FBEADB 0%, #F8F3EE 60%, #FFFFFF 100%); }

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover-art::before,
.cover-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cover-art::before {
  width: 70%;
  aspect-ratio: 1;
  left: -12%;
  bottom: -38%;
  background: radial-gradient(circle closest-side, rgba(181, 104, 44, .34), rgba(181, 104, 44, 0));
}

.cover-art::after {
  width: 60%;
  aspect-ratio: 1;
  right: -14%;
  top: -30%;
  background: radial-gradient(circle closest-side, rgba(227, 160, 106, .4), rgba(227, 160, 106, 0));
}

.cover--employers .cover-art::before { background: radial-gradient(circle closest-side, rgba(21, 32, 61, .16), rgba(21, 32, 61, 0)); }
.cover--employers .cover-art::after { background: radial-gradient(circle closest-side, rgba(181, 104, 44, .22), rgba(181, 104, 44, 0)); }

.cover-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  max-width: 120px;
  transform: translate(-50%, -50%);
  opacity: .9;
}

/* ---------------------------------------------------------------- article */

.article-page { padding: clamp(100px, 12vw, 140px) clamp(16px, 4vw, 48px) 0; }

.article-main { max-width: 1044px; margin: 0 auto; }

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb .i { color: var(--text-3); }
.breadcrumb li { display: flex; }

.article-header {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 820px;
}

.article-header .post-meta { gap: 12px; }
.article-header .badge { height: 26px; padding: 0 11px; }

.article-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--navy);
  text-wrap: balance;
}

.article-dek {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
  color: var(--text-2);
}

.article-byline .post-time { font-size: 14px; }
.article-author { color: var(--navy); font-weight: 500; }
.article-byline a { color: inherit; text-decoration: underline; text-decoration-color: rgba(181, 104, 44, .5); text-underline-offset: 3px; }

.article-cover {
  margin-top: 40px;
  aspect-ratio: 2 / 1;
  border-radius: clamp(20px, 2.4vw, 24px);
  box-shadow: var(--shadow-float);
}

@media (max-width: 767px) {
  .article-cover { aspect-ratio: 4 / 3; }
}

.article-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.article-content { min-width: 0; }

@media (max-width: 1023px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Contents: a sticky card beside the article on desktop... */
.toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.toc-title { padding: 6px 12px 10px; }

.toc-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.toc-link[aria-current] { background: var(--peach); color: var(--navy); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .toc-link:not([aria-current]):hover { background: var(--surface-2); }
}

@media (max-width: 1023px) {
  .toc, .toc-spacer { display: none; }
}

/* ...and a collapsible card above it on smaller screens. */
.toc-mobile {
  display: none;
  flex-direction: column;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .toc-mobile { display: flex; }
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary span { display: inline-flex; align-items: center; gap: 10px; }
.toc-mobile summary span .i { color: var(--copper); }
.toc-mobile .toc-chevron { transition: transform .2s; }
.toc-mobile[open] .toc-chevron { transform: rotate(180deg); }

.toc-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px 12px;
}

.toc-mobile-list .toc-link { padding: 10px 12px; font-size: 15px; }

/* -------------------------------------------------------------- prose */

.article-body {
  display: flex;
  flex-direction: column;
  font-size: clamp(17px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--navy-2);
}

.article-body > p,
.article-body li { text-wrap: pretty; }

.article-body > p { margin: 0 0 24px; }

.article-body strong { font-weight: 600; color: var(--navy); }

.article-body a,
.article-sources a,
.article-takeaways a,
.article-faq a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(181, 104, 44, .6);
}

@media (hover: hover) and (pointer: fine) {
  .article-body a:hover,
  .article-sources a:hover,
  .article-takeaways a:hover,
  .article-faq a:hover { text-decoration-color: var(--copper); }
}

.article-body h2 {
  margin: 20px 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--navy);
  scroll-margin-top: 110px;
  outline: none;
  text-wrap: balance;
}

.article-body h3 {
  margin: 8px 0 12px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.article-body h4 {
  margin: 4px 0 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
}

.article-body ul { padding-left: 24px; gap: 10px; }
.article-body ol { padding-left: 26px; gap: 12px; }
.article-body ul > li { padding-left: 4px; }
.article-body ol > li { padding-left: 6px; }
.article-body li > p { margin: 0 0 8px; }
.article-body li > p:last-child { margin-bottom: 0; }
.article-body li > ul, .article-body li > ol { margin: 10px 0 0; }

.pull-quote {
  margin: 8px 0 36px;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pull-quote .i { color: var(--copper); stroke-width: 1.5; }

.pull-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
}

.pull-quote blockquote p { margin: 0; }
.pull-quote blockquote p + p { margin-top: 12px; }

.table-block { margin: 8px 0 32px; }

/* The design spaces table columns with a 16px grid gap. Here each cell has
   8px of padding on both sides and the table reaches 8px past the text
   column, so every column's text is exactly as wide as in the design. The
   row rules are painted only under the text, so they start and end with it. */
.table-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.article-table {
  width: calc(100% + 16px);
  margin: 0 -8px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-2);
  --rule: rgba(21, 32, 61, .1);
}

.article-table thead { --rule: rgba(21, 32, 61, .14); }

.article-table .col-key { width: 38.96%; } /* 1fr : 1.6fr with a 16px gap */

.article-table th,
.article-table td {
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat 0 100% / 100% 1px;
}

.article-table th:first-child,
.article-table td:first-child { background-position: 8px 100%; background-size: calc(100% - 8px) 1px; }

.article-table th:last-child,
.article-table td:last-child { background-size: calc(100% - 8px) 1px; }

.article-table th:only-child,
.article-table td:only-child { background-position: 8px 100%; background-size: calc(100% - 16px) 1px; }

.article-table th {
  padding-top: 0;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--text-2);
}

.article-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: top;
  text-wrap: pretty;
}

.article-table td:first-child { font-weight: 600; color: var(--navy); }
.article-table strong { font-weight: 600; color: var(--navy); }

.table-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
}

@media (max-width: 767px) {
  .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .table-hint { display: flex; }
}

.article-note {
  margin: 4px 0 32px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--peach);
}

.article-note .i { margin-top: 2px; color: var(--copper); }
.article-note-body { font-size: 15px; line-height: 1.55; color: var(--navy-2); }
.article-note-body p { margin: 0; }
.article-note-body p + p { margin-top: 8px; }
.article-note-body a { text-decoration-color: currentColor; }

.article-editor-note {
  margin: 4px 0 32px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed rgba(21, 32, 61, .22);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.article-editor-note p { margin: 0; }

.article-editor-note-label {
  flex: none;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.article-figure { margin: 8px 0 32px; }

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--surface-2);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.article-body hr {
  margin: 12px 0 36px;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: ui-monospace, Menlo, monospace;
  font-size: .88em;
}

.article-body pre {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.article-body pre code { padding: 0; background: none; font-size: inherit; }

/* Key takeaways: a summary card before the article (answer engines quote it). */
.article-takeaways {
  margin: 0 0 32px;
  padding: clamp(20px, 2.4vw, 24px) clamp(20px, 2.4vw, 28px);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.article-takeaways h2 { margin: 0 0 14px; }

.article-takeaways ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-2);
}

.article-takeaways li { padding-left: 4px; text-wrap: pretty; }

/* Questions answered in the article, as visible Q&A (and FAQPage data). */
.article-faq { margin: 16px 0 40px; }

.article-faq > h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--navy);
  scroll-margin-top: 110px;
  outline: none;
}

.article-faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.article-faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.article-faq-item h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.article-faq-answer {
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-2);
}

.article-faq-answer p { margin: 0 0 10px; }
.article-faq-answer p:last-child { margin-bottom: 0; }
.article-faq-answer ul, .article-faq-answer ol { margin: 0 0 10px; padding-left: 22px; }

/* ------------------------------------------------------ call to action */

.article-cta {
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(20px, 2.4vw, 28px);
  background: var(--navy);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: center;
}

.article-cta-glow {
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 104, 44, .5), rgba(181, 104, 44, 0));
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.article-cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-cta .blog-eyebrow { color: var(--copper-light); }

.article-cta h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--cream);
  text-wrap: balance;
}

.article-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-muted);
  text-wrap: pretty;
}

.article-cta .btn { position: relative; justify-self: start; }

@media (max-width: 767px) {
  .article-cta { grid-template-columns: minmax(0, 1fr); }
  .article-cta .btn { justify-self: stretch; }
}

.article-cta-caption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ------------------------------------------------------------- sources */

.article-sources {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.article-sources h2 { margin: 0 0 16px; }

.article-sources ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-sources li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-2);
  padding-left: 4px;
}

.article-source-title { font-weight: 500; color: var(--navy); }
.article-source-publisher { color: var(--text-2); }

.article-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.article-sources h2 + .article-disclaimer { margin-top: 0; }

.article-back { margin-top: 40px; }

/* Author box under the article. */
.article-author-box {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.article-author-box img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach);
}

.article-author-box-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.article-author-box-name a { color: inherit; text-decoration: none; }
.article-author-box-role { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.article-author-box-bio { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--navy-2); text-wrap: pretty; }

/* -------------------------------------------------------------- related */

.related {
  max-width: 1200px;
  margin: clamp(64px, 8vw, 112px) auto 0;
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
}

.related-head > div { display: flex; flex-direction: column; gap: 12px; }

.related-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--navy);
}

.related-head .link { margin-bottom: 6px; }
.related .blog-grid { margin-top: 32px; }

/* ------------------------------------------------------------ not found */

.blog-404 {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(140px, 16vw, 200px) clamp(16px, 4vw, 48px) 0;
}

.blog-404-card {
  max-width: 560px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.blog-404-card h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--navy);
}

.blog-404-card p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.blog-404-card .btn { margin-top: 8px; }

/* -------------------------------------------------------------- footer */

.footer--blog { margin-top: clamp(80px, 9vw, 128px); }

@media (max-width: 767px) {
  .footer--blog { margin-top: clamp(80px, 9vw, 128px); }
}

@media print {
  .nav, .blog-sheet, .toc, .toc-mobile, .article-cta, .related, .footer, .blog-banner { display: none !important; }
  .article-page { padding-top: 0; }
  .article-grid { display: block; }
}
