/* ============================================================
   Blog detail — Figma 785:8583
   Numbers are the Figma pixel values at 1920 (1rem = 10px via the
   site's rem scale). Shared pieces are not restyled here: .tag,
   .btn, the .faq rows, the .contact band and the footer all come
   from style.css.
     header   copy at 100,142 (1720 wide) · shot 1720 x 820
     body     TOC 415 at x100 · rule at x575 · column 1185 at x635
   ============================================================ */

.page-article { background: var(--black); }

/* ---------- HEADER (785:8586) ---------- */
.article-head {
  position: relative;
  padding: 14.2rem var(--gutter) 10rem;
}
.article-head__logo {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.article-head__logo img { width: 32.1rem; height: 4.271rem; display: block; }

.article-head__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.2rem;
  width: 156.8rem;
  max-width: 100%;
}
/* the frame puts a single arrow chip above the meta, back to the listing. The
   icon library only has the right arrow, so it is mirrored here — with the
   `scale` property rather than `transform`, which js/hero.js animates for the
   roll on hover. */
.article-head__back { align-self: flex-start; }
.article-head__back .btn__icon { width: 5rem; height: 5rem; }
.article-head__back .btn__icon img { width: 2rem; height: 2rem; scale: -1 1; }

.article-head__meta { display: flex; align-items: center; gap: 3.2rem; }
.article-head__read { color: var(--white); font-size: 1.8rem; letter-spacing: -0.06em; }

/* one block that wraps on its own: stacking the two faces leaves an orphan
   whenever the sans half runs past a line on its own */
.article-head__title {
  font-size: 8.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: var(--white);
}
.article-head__title .hl { display: inline; }
.article-head__title .hl--pixel { line-height: 1.2; margin-top: 0; }
.article-head__lede {
  width: 172rem;
  max-width: 100%;
  color: var(--muted-2);
  font-size: 2.4rem;
  letter-spacing: -0.06em;
}

/* the two faces the headings are built from, here and in the body */
.hl--sans { font-family: var(--sans); }
.hl--pixel { font-family: var(--pixel); line-height: normal; margin-top: -0.6rem; }

.article-head__shot {
  margin: 10rem 0 0;
  height: 82rem;
  overflow: hidden;
  background: var(--surface);
}
.article-head__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- BODY (785:8883 / 785:8923) ----------
   The TOC column and the article sit either side of a hairline that runs the
   whole length of the read. */
.article {
  position: relative;
  display: grid;
  grid-template-columns: 41.5rem 1fr;
  column-gap: 12rem;
  padding: 10rem var(--gutter);
  border-top: 1px solid var(--line);
}
.article::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 57.5rem;
  width: 1px;
  background: #343434;
}

/* ---------- table of contents ---------- */
.toc {
  position: sticky;
  top: 6rem;
  align-self: start;
  /* some of these run to a hundred entries; the column holds the screen and
     the list scrolls inside it rather than running off the bottom */
  max-height: calc(100svh - 12rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6rem;
}
/* No scrollbar: the list is clipped to the column and js/article.js slides it
   so the section you are reading stays in view. The mask shows there is more
   above or below without drawing a bar. */
.toc__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  scroll-behavior: smooth;
}
.toc__list.is-clipped {
  --toc-top: transparent 0, #000 6rem;
  --toc-bottom: #000 calc(100% - 6rem), transparent 100%;
  -webkit-mask-image: linear-gradient(to bottom, var(--toc-top), var(--toc-bottom));
  mask-image: linear-gradient(to bottom, var(--toc-top), var(--toc-bottom));
}
.toc__list.is-clipped.at-start { --toc-top: #000 0, #000 0; }
.toc__list.is-clipped.at-end { --toc-bottom: #000 100%, #000 100%; }
.toc__item + .toc__item { margin-top: 2.4rem; }
.toc__item a {
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  opacity: 0.65;
  transition: opacity .35s ease;
}
.toc__item a:hover,
.toc__item.is-on a { opacity: 1; }
.toc__mark { width: 0.8rem; height: 0.8rem; background: var(--white); flex: none; }

/* ---------- the read ---------- */
/* the copy is somebody else's prose: long compounds and bare URLs turn up in
   it, and on a 320 screen they push the page sideways unless they can break */
.article__body { min-width: 0; display: flex; flex-direction: column; gap: 2.4rem; overflow-wrap: break-word; }
.article__p {
  color: var(--muted-2);
  font-size: 2.4rem;
  line-height: 1.3;
  letter-spacing: -0.06em;
}
.article__p a,
.article__list a { color: var(--white); text-decoration: underline; text-underline-offset: 0.4rem; }
.article__p a:hover,
.article__list a:hover { color: var(--accent); }
.article__p strong,
.article__list strong { color: var(--white); font-weight: 500; }

/* each h2 opens a section, ruled across from the hairline to the page edge */
.article__sec {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 6rem;
  padding-top: 10rem;
  position: relative;
}
.article__sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-12rem - 1px);
  right: calc(0rem - var(--gutter));
  height: 1px;
  background: #343434;
}
/* the frame sets an h2 as one block of mixed faces that wraps on its own, so
   a short heading stays on one line and a long one breaks where it must */
.article__h2 {
  font-size: 8.2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--white);
}
.article__h2 .hl { display: inline; }
.article__h2 .hl--pixel { line-height: 1.1; margin-top: 0; }
.article__h3 {
  margin-top: 1.6rem;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: var(--white);
}

.article__list { display: flex; flex-direction: column; gap: 2.4rem; }
.article__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 2.4rem;
  line-height: 1.3;
  letter-spacing: -0.06em;
}
.article__list img { width: 2.4rem; height: 2.4rem; flex: none; margin-top: 0.3rem; }
/* the text is a flex item, so it keeps its longest word as a minimum width
   unless told otherwise — bare URLs in the copy overflow a 320 screen */
.article__list li > span { min-width: 0; overflow-wrap: anywhere; }

/* the FAQ rows are the shipped ones, on the article's column width */
.article__faq { margin-top: 0; }

/* ---------- blocks carried over from the published posts ---------- */
/* h4-h6: the sub-points and FAQ questions inside a section */
.article__h4 {
  /* style.css resets h1-h3 only; h4-h6 would keep the browser's 1.33em margins.
     The small negative bottom margin keeps a question close to its answer. */
  margin: 0.8rem 0 -0.8rem;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: var(--white);
}
/* headings that link out (agency and expert names in the round-ups) */
.article__h2 a,
.article__h3 a,
.article__h4 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.4rem; }
.article__h2 a:hover,
.article__h3 a:hover,
.article__h4 a:hover { color: var(--accent); }
/* numbered lists: the number is written in the markup, so split lists keep counting */
.article__list--num li { gap: 1.2rem; }
.article__num { flex: none; min-width: 2.4rem; color: var(--white); font-variant-numeric: tabular-nums; }
/* comparison tables: scroll sideways inside their own box on narrow screens */
.article__table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #343434; }
.article__table:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.article__table table { width: 100%; min-width: 64rem; border-collapse: collapse; }
.article__table th,
.article__table td {
  padding: 1.4rem 1.6rem;
  border: 1px solid #343434;
  text-align: left;
  vertical-align: top;
  font-size: 1.8rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--muted-2);
}
.article__table th { color: var(--white); font-weight: 500; background: rgba(255, 255, 255, 0.04); }
.article__table a { color: var(--white); text-decoration: underline; text-underline-offset: 0.3rem; }
.article__table a:hover { color: var(--accent); }
.article__table strong { color: var(--white); font-weight: 500; }

/* ---------- START A CONVERSATION (785:10089) ----------
   desktop only, as on the blog and contact pages: these notch sizes are for the
   1920 frame, and left to run on a phone the top one cut a black block over the
   tag and the bottom one hid the end of the note */
@media (min-width: 1200px) {
  .page-article .contact__panel {
    clip-path: polygon(
      0 0, calc(100% - 27.85rem) 0, calc(100% - 27.85rem) 7.617rem, 100% 7.617rem,
      100% 100%, 6.6rem 100%, 6.6rem calc(100% - 8.4rem), 0 calc(100% - 8.4rem)
    );
  }
}

/* ---------- small screens ---------- */
@media (max-width: 1199px) {
  .article-head { padding: 12rem var(--gutter) 4.8rem; }
  .article-head__logo { top: 1.2rem; left: auto; right: var(--gutter); transform: none; }
  .article-head__logo img { width: 14rem; height: 1.86rem; }
  .article-head__copy { gap: 2rem; width: auto; }
  .article-head__title { font-size: 3.6rem; }
  .hl--pixel { margin-top: -0.2rem; }
  .article-head__lede { width: auto; font-size: 1.8rem; }
  .article-head__shot { margin-top: 4.8rem; height: 22rem; }

  .article { grid-template-columns: 1fr; padding: 4.8rem var(--gutter); row-gap: 4rem; }
  .article::before { display: none; }
  .toc { position: static; max-height: none; gap: 2.4rem; }
  .toc__list { overflow: visible; }
  .toc__list.is-clipped { -webkit-mask-image: none; mask-image: none; }
  .toc__item a { font-size: 1.8rem; padding-bottom: 1.6rem; }
  .toc__item + .toc__item { margin-top: 1.6rem; }

  .article__p, .article__list li { font-size: 1.8rem; }
  .article__sec { margin-top: 3.2rem; padding-top: 4rem; }
  .article__sec::before { left: 0; right: 0; }
  .article__h2 { font-size: 3.2rem; }
  .article__h3 { font-size: 2.2rem; }
  .article__h4 { font-size: 2rem; }
  .article__table table { min-width: 52rem; }
  .article__table th,
  .article__table td { padding: 1rem 1.2rem; font-size: 1.5rem; }
  .page-article .contact { height: auto; }
}

/* Privacy Policy and Terms: section headings sit clearly below the page title */
.article--legal .article__h2 { font-size: 4.8rem; }
@media (max-width: 1199px) {
  .article--legal .article__h2 { font-size: 2.4rem; }
}

/* ---------- readability pass (blog posts + legal pages) ----------
   Section headings sit clearly under the page title; body copy is brighter,
   looser and full width so long reads are easy on the eye. */
.article-head__lede { width: auto; max-width: none; color: #b3b3b3; line-height: 1.55; letter-spacing: -0.02em; }
.article-head__shot { margin-top: 6rem; }
.article__p,
.article__list li { color: #b3b3b3; line-height: 1.65; letter-spacing: -0.015em; }
.article__h2 { font-size: 4.8rem; line-height: 1.15; }
.article__h3 { font-size: 3rem; }
@media (max-width: 1199px) {
  .article-head__shot { margin-top: 3.2rem; }
  .article__h2 { font-size: 2.6rem; }
  .article__h3 { font-size: 2rem; }
  .article--legal .article__h2 { font-size: 2.4rem; }
}
.article-head__copy { width: 100%; }
/* sticky contents column starts clear of the fixed Menu tab */
.toc { top: 13rem; max-height: calc(100svh - 17rem); }
