@import url("legal.css");
@import url("variables.css");

:root {
  --article-shell-width: 960px;
  --article-column-width: 720px;
  --article-card-radius: 24px;
  --article-hairline: rgba(255, 255, 255, 0.12);
  --article-muted-panel: rgba(255, 255, 255, 0.06);
  --article-flow: var(--spacing-20);
  --article-section-gap: var(--spacing-56);
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.article-shell.legal-shell {
  width: min(100%, var(--article-shell-width));
  max-width: var(--article-shell-width);
  margin-inline: auto;
  padding: var(--spacing-64) var(--spacing-24) var(--spacing-80);
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    min(var(--article-column-width), 100%)
    minmax(0, 1fr);
  align-content: start;
}

.article-shell > * {
  grid-column: 2;
  min-width: 0;
}

.article-breadcrumbs {
  margin-bottom: var(--spacing-24);
}

.article-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--pastel-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  min-width: 0;
}

.article-breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.28);
}

.article-breadcrumbs a {
  color: var(--pastel-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--pastel-white);
  text-decoration: underline;
}

.article-breadcrumbs [aria-current="page"] {
  color: var(--pastel-white);
}

.article-header {
  margin-bottom: var(--spacing-8);
}

.article-kicker {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 var(--spacing-16);
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-badges);
  background: var(--pastel-yellow);
  color: var(--pastel-ink);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-studio-label);
  line-height: 1;
  text-transform: uppercase;
}

.article-shell h1 {
  margin: 0 0 var(--spacing-16);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: var(--font-weight-display);
  color: var(--pastel-white);
  text-wrap: balance;
}

.article-meta {
  margin: 0 0 var(--spacing-24);
  color: var(--pastel-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-lead {
  margin: 0 0 var(--spacing-40);
  color: var(--pastel-white);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.article-body {
  display: grid;
  gap: var(--article-flow);
}

.article-body a {
  color: var(--pastel-yellow);
  text-decoration: underline;
  text-decoration-color: rgba(248, 241, 78, 0.45);
  text-underline-offset: 0.15em;
}

.article-body a:hover {
  color: var(--pastel-white);
  text-decoration-color: currentColor;
}

.article-section {
  display: grid;
  gap: var(--article-flow);
}

.article-section + .article-section,
.article-section + .article-block,
.article-block + .article-section,
.article-body > p + .article-section,
.article-body > .article-section + p {
  margin-top: calc(var(--article-section-gap) - var(--article-flow));
}

.article-shell h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: var(--font-weight-display);
  color: var(--pastel-white);
  text-wrap: balance;
}

.article-shell.legal-shell h2,
.article-shell.legal-shell h3,
.article-shell.legal-shell p,
.article-shell.legal-shell li {
  font-family: inherit;
}

.article-shell.legal-shell ul.article-word-list,
.article-shell.legal-shell ol.article-framework {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.article-shell .article-word-list li,
.article-shell .article-framework > li {
  margin-top: 0;
}

.article-section > h2 {
  padding-top: var(--spacing-32);
  border-top: 1px solid var(--article-hairline);
}

.article-section:first-child > h2 {
  padding-top: 0;
  border-top: 0;
}

.article-shell h3 {
  margin: var(--spacing-24) 0 var(--spacing-8);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: var(--font-weight-display);
  color: var(--pastel-white);
}

.article-shell p {
  margin: 0;
  color: var(--pastel-muted);
  line-height: 1.65;
}

.article-shell .article-lead,
.article-section > p:first-of-type {
  color: rgba(255, 255, 255, 0.88);
}

.article-block {
  display: grid;
  gap: var(--article-flow);
}

.article-block + .article-block,
.article-block + .article-section,
.article-section + .article-block {
  margin-top: calc(var(--article-section-gap) - var(--article-flow));
}

.article-placeholder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-20);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-card);
  background: var(--pastel-white);
  color: var(--pastel-ink);
}

.article-placeholder__copy {
  display: grid;
  gap: var(--spacing-12);
  min-width: 0;
}

.article-placeholder__eyebrow {
  display: block;
  margin: 0;
  color: var(--pastel-magenta);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-studio-label);
  text-transform: uppercase;
}

.article-placeholder__title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: var(--font-weight-display);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.article-placeholder__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.article-shell .article-placeholder .article-placeholder__title {
  color: var(--pastel-ink);
}

.article-shell .article-placeholder .article-placeholder__text {
  color: var(--pastel-ink-muted);
}

.article-placeholder__panel {
  display: grid;
  gap: var(--spacing-12);
  min-width: 0;
  padding: var(--spacing-20);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.055);
}

.article-placeholder__line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.13);
}

.article-placeholder__line:nth-child(2) {
  width: 82%;
}

.article-placeholder__line:nth-child(3) {
  width: 58%;
}

.article-placeholder__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-top: var(--spacing-8);
}

.article-placeholder__chip {
  display: inline-flex;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: var(--pastel-yellow);
  color: var(--pastel-ink);
  font-size: 0.78rem;
  font-weight: var(--font-weight-bold);
}

.article-word-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-12);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-word-list li {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: var(--spacing-16);
  border-radius: var(--article-card-radius);
  background: var(--pastel-white);
  color: var(--pastel-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--font-weight-display);
  line-height: 1.2;
}

.article-framework {
  display: grid;
  gap: var(--spacing-12);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-framework > li {
  display: grid;
  gap: var(--spacing-12);
  margin: 0;
  padding: var(--spacing-20);
  border-radius: var(--article-card-radius);
  background: var(--pastel-white);
  color: var(--pastel-ink-muted);
}

.article-framework > li > strong {
  display: block;
  margin: 0;
  color: var(--pastel-ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--font-weight-display);
  line-height: 1.2;
}

.article-framework > li > p {
  margin: 0;
  color: var(--pastel-ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.article-sublist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: var(--spacing-16);
  list-style: none;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.045);
}

.article-sublist li {
  margin: 0;
  padding: var(--spacing-12) 0;
  color: var(--pastel-ink-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.article-sublist li:first-child {
  padding-top: 0;
}

.article-sublist li:last-child {
  padding-bottom: 0;
}

.article-sublist li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-sublist strong {
  display: inline;
  color: var(--pastel-ink);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
}

.article-quote {
  margin: 0;
  padding: var(--spacing-20) var(--spacing-20) var(--spacing-20) var(--spacing-24);
  border-left: 3px solid var(--pastel-magenta);
  border-radius: 0 var(--article-card-radius) var(--article-card-radius) 0;
  background: var(--article-muted-panel);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.article-section h3 + .article-note {
  margin-top: var(--spacing-4);
}

.article-note,
.article-injected {
  padding: var(--spacing-20);
  border-radius: var(--article-card-radius);
  background: var(--article-muted-panel);
  color: var(--pastel-white);
}

.article-note {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  line-height: 1.55;
}

.article-cta {
  display: grid;
  gap: var(--spacing-16);
  margin-top: calc(var(--article-section-gap) - var(--article-flow));
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-card);
  background: var(--pastel-yellow);
  color: var(--pastel-ink);
}

.article-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-display);
  color: var(--pastel-ink);
}

.article-cta p {
  color: rgba(0, 0, 0, 0.68);
}

.article-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-buttonpill);
  background: var(--pastel-ink);
  color: var(--pastel-white);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.article-cta__button:hover {
  color: var(--pastel-yellow);
  text-decoration: none;
  transform: translateY(-1px);
}

.article-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-16);
}

.article-compare__card {
  min-width: 0;
  padding: var(--spacing-24);
  border-radius: var(--radius-card);
  background: var(--pastel-white);
  color: var(--pastel-ink);
}

.article-compare__card--bad {
  background: rgba(255, 255, 255, 0.12);
  color: var(--pastel-white);
}

.article-compare__label {
  display: block;
  margin-bottom: var(--spacing-12);
  color: var(--pastel-magenta);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-studio-label);
  text-transform: uppercase;
}

.article-compare__card--bad .article-compare__label {
  color: var(--pastel-yellow);
}

.article-compare blockquote {
  margin: 0 0 var(--spacing-16);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.article-compare__verdict {
  margin: 0;
  color: currentColor;
  opacity: 0.66;
  font-size: 0.9375rem;
}

.article-injected p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.article-injected strong {
  color: var(--pastel-white);
}

.article-faq {
  display: grid;
  gap: 0;
}

.article-faq details {
  padding: var(--spacing-20) 0;
  border-top: 1px solid var(--article-hairline);
}

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

.article-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-16);
  cursor: pointer;
  list-style: none;
}

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

.article-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  border: 1px solid var(--article-hairline);
  border-radius: 999px;
  color: var(--pastel-yellow);
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-faq details[open] summary::after {
  content: "−";
  border-color: rgba(248, 241, 78, 0.35);
}

.article-faq summary:hover::after {
  border-color: rgba(248, 241, 78, 0.45);
  color: var(--pastel-white);
}

.article-faq__question {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: var(--font-weight-display);
  color: var(--pastel-white);
}

.article-faq details p {
  margin-top: var(--spacing-12);
}

/* Override .legal-shell p/li (white muted) inside light-surface cards */
.article-shell.legal-shell .article-framework > li > p,
.article-shell.legal-shell .article-sublist li,
.article-shell.legal-shell .article-word-list li,
.article-shell.legal-shell .article-compare__card:not(.article-compare__card--bad) :is(p, blockquote),
.article-shell.legal-shell .article-placeholder :is(p, .article-placeholder__title, .article-placeholder__text) {
  color: var(--pastel-ink-muted);
}

.article-shell.legal-shell .article-framework > li > strong,
.article-shell.legal-shell .article-sublist strong,
.article-shell.legal-shell .article-word-list li,
.article-shell.legal-shell .article-placeholder .article-placeholder__title,
.article-shell.legal-shell .article-compare__card:not(.article-compare__card--bad) .article-compare__label {
  color: var(--pastel-ink);
}

.article-shell.legal-shell .article-word-list li {
  color: var(--pastel-ink);
}

.article-footer {
  margin-top: var(--article-section-gap);
  padding-top: var(--spacing-32);
  border-top: 1px solid var(--article-hairline);
  color: var(--pastel-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-footer a + a::before {
  content: " · ";
  color: var(--pastel-muted);
  text-decoration: none;
}

@media (min-width: 768px) {
  .article-placeholder--hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .article-word-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-cta__button {
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .article-shell.legal-shell {
    padding: var(--spacing-48) var(--spacing-16) var(--spacing-64);
  }

  .article-section > h2 {
    padding-top: var(--spacing-24);
  }

  .article-placeholder,
  .article-compare__card,
  .article-cta {
    padding: var(--spacing-20);
  }
}

@media (max-width: 480px) {
  .article-shell h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }
}
