/* Recommended by Agents — methodology page
   Loads after styles.css and uses its tokens. No colors are defined here. */

.mth-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sections on this page meet with square edges */
.mth-hero, .mth-glance, .mth-steps, .mth-limits, .mth-indep { border-radius: 0; margin-top: 0; }

.mth-num {
  font-weight: 300; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(120deg, var(--grad-text-a), var(--grad-text-b) 60%, var(--grad-text-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .mth-num { background-image: linear-gradient(120deg, var(--grad-dark-a), var(--grad-dark-b) 55%, var(--grad-dark-c)); }

/* ---------- Hero: the method beside one coded answer ---------- */

.mth-hero__grid { display: grid; gap: 56px; align-items: center; }
.mth-hero h1 { max-width: 8em; font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -.035em; }
.mth-hero .lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 30em; }
@media (min-width: 1000px) {
  .mth-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); }
  .mth-hero .mth-mock { justify-self: end; }
}

.mth-mock {
  width: 100%; max-width: 520px; padding: 24px;
  border: 1px solid rgba(var(--lavender-rgb), .28); border-radius: 24px;
  background: rgba(var(--surface-rgb), .72); color: var(--paper);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 120px -40px rgba(var(--electric-rgb), .55);
  font-size: 15px; line-height: 1.4;
}
@media (min-width: 640px) { .mth-mock { padding: 32px; } }
.mth-mock__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.mth-mock__title { font-weight: 500; white-space: nowrap; }
.mth-mock__sub { color: var(--lavender); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mth-mock__label { margin: 24px 0 4px; font-size: 13px; font-weight: 500; color: var(--lavender); }
.mth-mock__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--lavender); }
.mth-mock .report__flags { margin-top: 20px; }

.mth-prompt {
  margin-top: 20px; padding: 14px 18px; border-radius: 16px 16px 16px 4px;
  background: rgba(var(--lavender-rgb), .12); font-size: 16px; line-height: 1.4;
}
.mth-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mth-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(var(--lavender-rgb), .3); font-size: 12.5px; color: var(--lavender);
}
.mth-tag--hot { border-color: rgba(var(--electric-rgb), .5); color: var(--cyan); }

.mth-coded li {
  display: grid; grid-template-columns: 1.6em 1fr auto; gap: 2px 8px; align-items: baseline;
  padding-block: 13px; border-bottom: 1px solid var(--line-dark);
}
.mth-coded__pos { grid-row: 1 / span 2; color: var(--cyan); font-variant-numeric: tabular-nums; }
.mth-coded b { font-weight: 500; }
.mth-coded__as { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--good); }
.mth-coded__pt {
  grid-column: 3; grid-row: 1 / span 2; align-self: center; padding: 4px 12px; border-radius: 999px;
  background: var(--electric); color: var(--on-accent); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.mth-coded .is-mention .mth-coded__pos { color: var(--muted); }
.mth-coded .is-mention b { color: var(--lavender); }
.mth-coded .is-mention .mth-coded__as { color: var(--lavender); }
.mth-coded .is-mention .mth-coded__pt { background: none; border: 1px solid rgba(var(--lavender-rgb), .3); color: var(--lavender); }

/* ---------- At a glance: the arithmetic of one category ---------- */

.mth-eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; margin: 0; }
.mth-eq div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 20px; border-top: 2px solid rgba(var(--indigo-rgb), .25); }
.mth-eq .mth-eq__sum { grid-column: 1 / -1; border-top-color: var(--accent-text); }
.mth-eq dd { display: flex; align-items: baseline; gap: .12em; margin: 0; font-size: clamp(54px, 8.4vw, 128px); }
.mth-eq .mth-num { display: block; padding-bottom: .06em; }
.mth-eq .mth-eq__sum dd { font-size: clamp(72px, 8.4vw, 128px); }
.mth-op { font-size: .42em; font-weight: 300; line-height: 1; color: var(--muted-on-light); transform: translateY(-.35em); }
.mth-eq dt { margin-top: 12px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.mth-eq dt small, .mth-meta dd small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted-on-light); }
@media (min-width: 900px) {
  .mth-eq { grid-template-columns: 1fr 1fr 1fr 2.1fr; column-gap: var(--gutter); }
  .mth-eq .mth-num { min-width: 1.15em; }
  .mth-eq .mth-eq__sum .mth-num { min-width: 0; }
  .mth-eq .mth-eq__sum { grid-column: auto; }
}

.mth-meta { display: grid; margin: 56px 0 0; border-top: 1px solid var(--line-light); }
.mth-meta div { padding-block: 20px; border-bottom: 1px solid var(--line-light); }
.mth-meta dt { font-size: 13px; font-weight: 500; color: var(--muted-on-light); }
.mth-meta dd { margin: 6px 0 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
@media (min-width: 900px) {
  .mth-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 72px; border-bottom: 1px solid var(--line-light); }
  .mth-meta div { border-bottom: 0; padding-block: 28px; }
}

.mth-measure { display: grid; gap: 40px; margin-top: 88px; }
.mth-measure__intro h2 { max-width: 10em; }
.mth-measure__intro p { margin-top: 28px; max-width: 22em; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.3; letter-spacing: -.015em; }
.mth-measure__also > p { max-width: 32em; font-size: 18px; color: var(--muted-on-light); }
.mth-defs { margin: 32px 0 0; border-top: 1px solid var(--indigo); }
.mth-defs div { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line-light); }
.mth-defs dt { font-size: 18px; font-weight: 500; line-height: 1.3; }
.mth-defs dd { margin: 0; font-size: 16px; color: var(--muted-on-light); }
.mth-defs .is-main dt { color: var(--accent-text); }
@media (min-width: 640px) {
  .mth-defs div { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: baseline; }
}
@media (min-width: 1000px) {
  .mth-measure { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); align-items: end; margin-top: 136px; }
}

/* ---------- Shared section head ---------- */

.mth-head { display: grid; gap: 24px; }
.mth-head h2 { max-width: 12em; }
.mth-head__lede { max-width: 28em; font-size: 18px; color: var(--muted-on-light); }
.section--dark .mth-head__lede { color: var(--lavender); }
@media (min-width: 900px) {
  .mth-head { grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
  .mth-head__lede { justify-self: end; }
}

/* ---------- The five steps as one line ---------- */

.mth-steps { overflow: hidden; }
.mth-steps::before {
  content: ""; position: absolute; left: 50%; top: 12%; width: min(900px, 130vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--electric-rgb), .13), rgba(var(--violet-rgb), .06) 60%, transparent);
}
.mth-steps > .container { position: relative; }

.mth-line { margin-top: 64px; }
.mth-line > li { position: relative; display: grid; gap: 32px; padding: 72px 0 80px; border-top: 1px solid var(--line-dark); }
.mth-line > li:last-child { padding-bottom: 0; }
.mth-line__icon {
  position: absolute; left: 0; top: -24px; width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  border: 1px solid rgba(var(--lavender-rgb), .35); background: var(--ink); color: var(--cyan);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.mth-line__icon--on { border-color: var(--electric); background: var(--electric); color: var(--on-accent); }
.mth-line h3 { display: flex; align-items: baseline; gap: .35em; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; }
.mth-line h3 .mth-num { font-size: .5em; letter-spacing: -.02em; line-height: 1; }
.mth-line__text p { margin-top: 16px; max-width: 34em; color: var(--lavender); }
.mth-line__text .mth-line__big { margin-top: 28px; max-width: 26em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--paper); }
.mth-line__text .mth-line__more { margin-top: 28px; }
.mth-link { color: var(--paper); font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: rgba(var(--electric-rgb), .6); }
.mth-link:hover { text-decoration-color: currentColor; }

@media (min-width: 1000px) {
  .mth-line { margin-top: 112px; padding-left: 96px; }
  .mth-line > li { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); align-items: start; padding: 0 0 112px; border-top: 0; }
  .mth-line > li::after {
    content: ""; position: absolute; left: -72px; top: 60px; bottom: 12px; width: 1px;
    background: rgba(var(--lavender-rgb), .3);
  }
  .mth-line > li:last-child::after { display: none; }
  .mth-line__icon { left: -96px; top: 0; }
  .mth-line .mth-panel { justify-self: end; }
}

/* Panels beside each step */
.mth-panel {
  width: 100%; max-width: 520px; padding: 24px;
  border: 1px solid rgba(var(--lavender-rgb), .22); border-radius: 24px;
  background: rgba(var(--surface-rgb), .6); font-size: 15px; line-height: 1.4;
}
@media (min-width: 640px) { .mth-panel { padding: 32px; } }
.mth-panel > .mth-prompt:first-child { margin-top: 0; }
.mth-panel__cap { margin-top: 10px; font-size: 13px; color: var(--lavender); }
.mth-panel__label { margin: 24px 0 10px; font-size: 13px; font-weight: 500; color: var(--lavender); }
.mth-panel__label:first-child { margin-top: 0; }
.mth-panel__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--lavender); }

/* Ask: forty questions, a quarter of them new */
.mth-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.mth-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(var(--lavender-rgb), .22); }
.mth-dots i:nth-child(4n + 2) { background: var(--electric); }
.mth-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: 13px; color: var(--lavender); }
.mth-key li { display: inline-flex; align-items: center; gap: 8px; }
.mth-key li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--lavender-rgb), .3); }
.mth-key .is-new { color: var(--paper); }
.mth-key .is-new::before { background: var(--electric); }

/* Run */
.mth-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mth-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--lavender-rgb), .3); font-size: 14px;
}
.mth-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); }
.mth-runs, .mth-week { display: grid; gap: 6px; }
.mth-runs { grid-template-columns: repeat(5, 28px); }
.mth-runs i { height: 28px; border-radius: 50%; border: 1.5px solid var(--electric); background: rgba(var(--electric-rgb), .14); }
.mth-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mth-week i { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--violet), var(--electric)); }

/* Read */
.mth-coders li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 14px; border-bottom: 1px solid var(--line-dark);
}
.mth-coders li:first-child { padding-top: 0; }
.mth-coders span { font-size: 14px; color: var(--lavender); }
.mth-coders b { font-weight: 500; text-align: right; }
.mth-coders .is-final { border-bottom: 0; padding-bottom: 0; }
.mth-coders .is-final span { color: var(--cyan); }
.mth-coders .is-final b { padding: 4px 12px; border-radius: 999px; background: var(--electric); color: var(--on-accent); font-size: 14px; }

/* Publish */
.mth-out li {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center;
  padding-block: 13px; border-bottom: 1px solid var(--line-dark); font-size: 16px;
}
.mth-out li:last-child { border-bottom: 0; padding-bottom: 0; }
.mth-out svg { width: 20px; height: 20px; color: var(--electric); }

/* Score */
.mth-formula { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.mth-formula > span:nth-child(2) { color: var(--lavender); font-weight: 300; }
.mth-frac { display: inline-grid; text-align: center; font-size: 17px; font-weight: 400; letter-spacing: 0; }
.mth-frac > span:first-child { padding: 0 10px 6px; border-bottom: 1px solid var(--cyan); }
.mth-frac > span:last-child { padding: 6px 10px 0; color: var(--lavender); }
.mth-bars { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.mth-bars li { display: grid; grid-template-columns: minmax(0, 4.5em) 1fr 2.6em; gap: 14px; align-items: center; }
.mth-bars b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.mth-bars__bar { height: 8px; border-radius: 8px; background: rgba(var(--lavender-rgb), .16); overflow: hidden; }
.mth-bars__bar i {
  display: block; width: var(--w); height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--violet), var(--electric));
  transform-origin: 0 50%; transition: transform 1.2s var(--ease) .25s;
}
.js .mth-panel:not(.is-in) .mth-bars__bar i { transform: scaleX(0); }

/* ---------- Limits ---------- */

.mth-scope { display: grid; margin-top: 64px; border-top: 1px solid var(--indigo); }
.mth-scope li {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: baseline;
  padding-block: 20px; border-bottom: 1px solid var(--line-light);
}
.mth-scope svg { width: 20px; height: 20px; align-self: center; color: var(--accent-text); }
.mth-scope b { font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.mth-scope span { font-size: 14px; font-weight: 500; color: var(--accent-text); white-space: nowrap; }
.mth-scope .is-out svg, .mth-scope .is-out span { color: var(--muted-on-light); }
.mth-scope .is-out b { color: var(--muted-on-light); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(var(--indigo-rgb), .35); }
.mth-limits__big { margin-top: 64px; max-width: 24em; font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 900px) {
  .mth-scope { margin-top: 88px; }
  .mth-limits__big { margin-top: 88px; }
}

/* ---------- Independence ---------- */

.mth-rules { display: grid; gap: 40px; }
.mth-rules__p { margin-top: 24px; max-width: 22em; font-size: 18px; color: var(--muted-on-light); }
.mth-rules__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 20px; }
.mth-checks { border-top: 1px solid var(--indigo); }
.mth-checks li {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start;
  padding-block: 20px; border-bottom: 1px solid var(--line-light); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35;
}
.mth-checks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--accent-text); }
@media (min-width: 900px) {
  .mth-rules { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: calc(var(--gutter) * 2); }
}

@media (prefers-reduced-motion: reduce) {
  .js .mth-panel:not(.is-in) .mth-bars__bar i { transform: none; }
}
