/* ==========================================================================
   True Review - publication stylesheet
   Loaded after Bootstrap 5.3.3. Mobile-first: base rules target ~360px,
   wider layouts are layered on with min-width queries at 480 / 768 / 1024.
   ========================================================================== */

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #0d1112;
  --body: #232b2d;
  --muted: #52605f;
  --teal: #12616b;
  --teal-dark: #0b474f;
  --tint: #f2f8f8;
  --tint-2: #e3f0f1;
  --line: #cfe1e3;
  --rule: #e3e7e8;
  --radius: 4px;
  --gutter: 16px;
  --space-section: 2.75rem;
  --sticky-offset: 92px;
}

@media (min-width: 768px) {
  :root {
    --space-section: 3.75rem;
    --gutter: 20px;
  }
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2000;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Masthead ---------- */

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 60px;
  padding: 8px var(--gutter);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--teal);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.label-pill {
  order: 2;
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--tint);
}

.nav-toggle {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.nav-toggle:hover {
  background: var(--tint-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.masthead__nav {
  order: 5;
  flex-basis: 100%;
}

.masthead__nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.masthead__nav a:hover {
  color: var(--teal);
}

@media (min-width: 1024px) {
  .masthead__bar {
    flex-wrap: nowrap;
    min-height: 60px;
    padding: 0 44px;
  }

  .nav-toggle {
    display: none;
  }

  .masthead__nav,
  .masthead__nav.collapse:not(.show) {
    display: block !important;
    order: 2;
    flex: 1 1 auto;
    flex-basis: auto;
    margin: 0 72px;
  }

  .masthead__nav ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

  .masthead__nav a {
    min-height: 60px;
    border-top: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0 8px;
  }

  .label-pill {
    order: 3;
    margin-left: auto;
  }

  .brand {
    margin-right: 0;
  }
}

/* ---------- Sticky promo bar (the article's rail) ---------- */

.promo-sentinel {
  height: 1px;
  margin-bottom: -1px;
}

.promo-bar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--tint);
  transition: box-shadow 0.2s ease;
}

.promo-bar.is-stuck {
  box-shadow: 0 2px 12px rgba(13, 17, 18, 0.12);
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.promo-bar__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.promo-bar__more {
  display: none;
}

@media (min-width: 768px) {
  .promo-bar__inner {
    padding: 16px 0;
    gap: 24px;
  }

  .promo-bar__text {
    font-size: 1rem;
    font-weight: 500;
  }

  .promo-bar__more {
    display: inline;
  }
}

/* ---------- Shared article shell ---------- */

.container.article-shell {
  width: 100%;
  max-width: 832px;
  padding-left: 16px;
  padding-right: 16px;
}

.article {
  padding-bottom: 3rem;
}

/* ---------- CTA button ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 71, 79, 0.28);
}

.btn-cta:active {
  transform: translateY(1px);
}

.btn-cta::after {
  content: "\2192";
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.btn-cta:hover::after {
  transform: translateX(3px);
}

.btn-cta--wrap {
  white-space: normal;
}

@media (min-width: 480px) {
  .btn-cta {
    font-size: 1rem;
    padding: 12px 24px;
  }
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 1.25rem 0 1.25rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink);
}

.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px 1px 10px;
  border-top: 1.5px solid #8a9697;
  border-right: 1.5px solid #8a9697;
  transform: rotate(45deg);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- Headline block ---------- */

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.article h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.dek {
  margin: 0 0 1rem;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
  color: #34403f;
}

.byline {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.byline strong {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- "In this article" ---------- */

.toc {
  margin: 0 0 1.5rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.toc[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.toc summary:hover {
  background: var(--tint-2);
  border-radius: var(--radius);
}

.toc ol {
  margin: 0;
  padding: 4px 16px 12px 40px;
  font-size: 1rem;
}

.toc li {
  padding: 2px 0;
}

.toc li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}

.toc li a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- Media ---------- */

.media {
  margin: 0;
}

.media + .media {
  margin-top: 1.5rem;
}

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dbe5e6;
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.media-frame--hero {
  aspect-ratio: 4 / 3;
}

.media-frame--hero video {
  object-position: 50% 28%;
}

.media-frame--wide {
  aspect-ratio: 3 / 2;
}

.media-frame--banner {
  aspect-ratio: 16 / 9;
}

.media-frame--half {
  aspect-ratio: 4 / 3;
}

.media-frame--portrait {
  aspect-ratio: 16 / 10;
}

.media figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.media-hero {
  margin-bottom: 2rem;
}

.media-break {
  margin-top: var(--space-section);
}

@media (min-width: 768px) {
  .media-frame--hero {
    aspect-ratio: 3 / 2;
  }

  .media-frame--portrait {
    aspect-ratio: 4 / 5;
  }

  .media + .media {
    margin-top: 0;
  }
}

/* ---------- Q&A sections ---------- */

.qa {
  margin-top: var(--space-section);
  scroll-margin-top: var(--sticky-offset);
}

.qa__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.qa h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.article p {
  margin: 0 0 1.15em;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--body);
}

.article p strong {
  font-weight: 700;
  color: var(--ink);
}

.article .lead-in {
  font-weight: 600;
  color: var(--ink);
}

.intro p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* Pull box: the key sentence of an answer */

.pull {
  margin: 0 0 1.5rem;
  padding: 18px 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull p {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

/* Inline call-to-action block */

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 2rem 0 0;
  padding: 20px;
  background: var(--tint);
  border-radius: var(--radius);
}

.article .cta-block__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.cta-block__text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.125rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .cta-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
  }

  .cta-block .btn-cta {
    flex: none;
  }
}

/* Numbered steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1rem;
  padding: 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 1.25rem;
  min-height: 38px;
  padding: 2px 0 0 52px;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.steps strong {
  color: var(--ink);
}

/* Plain list with drawn bullets */

.plain-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.plain-list li {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 28px;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}

/* Closing section: portrait image beside the answer */

.closing {
  align-items: center;
  margin-top: calc(-1 * var(--bs-gutter-y) + 0.5rem);
}

.closing .btn-cta {
  margin-top: 0.25rem;
}

/* ---------- Footer (publisher imprint) ---------- */

.footer {
  margin-top: 1rem;
  padding: 2.5rem 0 3rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.footer__inner {
  display: block;
}

.footer .company {
  margin-bottom: 1.25rem;
}

.footer .company p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer .company strong {
  font-weight: 800;
  color: var(--ink);
}

.footer .legal {
  margin-bottom: 1rem;
}

.footer .legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2b3a3d;
  text-decoration: none;
}

.footer .legal a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer .publisher_note {
  max-width: 62ch;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Legal / about pages ---------- */

.masthead--simple .masthead__bar {
  justify-content: space-between;
}

.masthead--simple .masthead__back {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.masthead--simple .masthead__back:hover {
  color: var(--teal);
  text-decoration: underline;
}

.doc {
  padding: 1.5rem 0 3rem;
}

.doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc .doc__meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.doc p,
.doc li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc address {
  margin: 0 0 1rem;
  font-style: normal;
  line-height: 1.7;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
