:root {
  color-scheme: dark;
  --canvas: #101c18;
  --canvas-deep: #0c1713;
  --panel: #172823;
  --panel-soft: #20332d;
  --panel-raised: #293c36;
  --ink: #f8f8f2;
  --muted: #b9c7c0;
  --soft-muted: #8fa098;
  --rule: #40534d;
  --accent: #16a085;
  --accent-soft: #c4efe2;
  --paper: #f7f5ed;
  --paper-ink: #18221e;
  --paper-muted: #66746d;
  --display: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: Inter, Avenir Next, Avenir, Noto Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 83% -12%, rgba(36, 100, 80, 0.26), transparent 36rem),
    linear-gradient(180deg, #12211c 0, var(--canvas) 38rem);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f8d665;
  outline-offset: 4px;
}

.results-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.results-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(16, 28, 24, 0.92);
  backdrop-filter: blur(16px);
}

.results-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.results-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.results-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.results-header nav a:hover {
  color: var(--ink);
}

.results-hero {
  max-width: 930px;
  padding: 96px 0 56px;
}

.results-hero.compact-hero {
  max-width: 980px;
  padding: 38px 0 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.85rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.compact-hero h1 {
  font-size: clamp(3rem, 6vw, 4.9rem);
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.018em;
}

.lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.13rem, 2.1vw, 1.42rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #08221a;
}

.button-primary:hover {
  background: #28b69a;
}

.button-secondary:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 68px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(31, 52, 45, 0.75);
  overflow: hidden;
}

.context-strip div {
  display: grid;
  gap: 2px;
  min-height: 104px;
  align-content: center;
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
}

.context-strip div:last-child {
  border-right: 0;
}

.context-strip strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.95rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.context-strip span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.content-section {
  padding: 58px 0;
}

.content-section-alt {
  margin-inline: calc((100vw - min(100vw - 48px, 1180px)) / -2);
  padding-inline: calc((100vw - min(100vw - 48px, 1180px)) / 2);
  border-block: 1px solid var(--rule);
  background: rgba(8, 20, 16, 0.5);
}

.section-heading {
  max-width: 750px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading-left {
  max-width: 800px;
  margin-inline: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.provider-card,
.family-card {
  border: 1px solid var(--rule);
  background: rgba(32, 51, 45, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.provider-card {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 15px;
  color: var(--ink);
  text-decoration: none;
}

.provider-card:hover,
.family-card[href]:hover {
  border-color: #668077;
  background: var(--panel-raised);
  transform: translateY(-1px);
}

.provider-card > :last-child {
  margin-left: auto;
  color: var(--accent-soft);
  font-size: 1.4rem;
}

.provider-mark {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eff1ec;
  object-fit: contain;
}

.provider-card-copy,
.card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.provider-card-title,
.card-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-card-meta,
.card-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.threshold-section {
  padding-top: 14px;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.threshold-card {
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--panel);
  overflow: hidden;
}

.threshold-card h3 {
  margin: 0;
  padding: 19px 18px 4px;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.threshold-intro {
  min-height: 45px;
  margin: 0;
  padding: 0 18px 15px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.threshold-table-wrap {
  overflow-x: auto;
}

.threshold-table {
  table-layout: fixed;
  font-size: 0.78rem;
}

.threshold-table th,
.threshold-table td {
  padding: 11px 10px;
}

.threshold-table th:first-child,
.threshold-table td:first-child {
  width: 48%;
}

.threshold-table th:nth-child(2),
.threshold-table td:nth-child(2) {
  width: 18%;
}

.threshold-table th:nth-child(3),
.threshold-table td:nth-child(3),
.threshold-table th:nth-child(4),
.threshold-table td:nth-child(4) {
  width: 17%;
}

.threshold-table thead th {
  font-size: 0.66rem;
}

.threshold-family {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.threshold-family:hover {
  color: var(--accent-soft);
}

.threshold-family .provider-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.threshold-family span {
  overflow-wrap: anywhere;
}

.family-card {
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}

.family-card-selected {
  border-color: rgba(22, 160, 133, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 160, 133, 0.22);
}

.manufacturer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.manufacturer-list li {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.manufacturer-list .provider-mark {
  width: 22px;
  height: 22px;
}

.manufacturer-count {
  margin-left: auto;
  color: var(--soft-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 30px;
  color: var(--soft-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--muted);
}

.provider-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.provider-heading .provider-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.provider-heading h1 {
  margin-bottom: 18px;
}

.configuration-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 38px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.configuration-summary article {
  min-height: 144px;
  padding: 21px 24px;
  border-right: 1px solid var(--rule);
}

.configuration-summary article:last-child {
  border-right: 0;
}

.configuration-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.configuration-summary strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.configuration-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chart-section {
  padding-top: 18px;
}

.settings-chart {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper);
  color: var(--paper-ink);
  overflow: hidden;
}

.settings-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 0;
}

.settings-chart figcaption strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.settings-chart figcaption span {
  max-width: 390px;
  color: var(--paper-muted);
  font-size: 0.84rem;
  text-align: right;
}

.settings-chart svg {
  display: block;
  width: 100%;
  min-width: 720px;
  margin-top: 2px;
  overflow: visible;
}

.settings-chart {
  overflow-x: auto;
}

.chart-grid {
  stroke: #d8d8ce;
  stroke-width: 1;
}

.chart-axis {
  stroke: #829087;
  stroke-width: 1.25;
}

.chart-tick {
  fill: #66746d;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke: #15977e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-point circle {
  fill: var(--paper);
  stroke: #15977e;
  stroke-width: 4;
}

.chart-value {
  fill: #18221e;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 850;
}

.chart-setting {
  fill: #35443d;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.chart-cost {
  fill: #66746d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.chart-note {
  margin: 0;
  padding: 0 28px 22px;
  color: var(--paper-muted);
  font-size: 0.84rem;
}

.global-context-section {
  padding-top: 20px;
}

.global-context-chart {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
  color: var(--paper-ink);
  overflow: hidden;
}

.global-context-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 14px;
}

.global-context-chart figcaption > span:first-child {
  display: grid;
  gap: 4px;
}

.global-context-chart figcaption strong {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.global-context-chart figcaption small {
  max-width: 580px;
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.context-legend {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 7px;
  max-width: 340px;
  color: var(--paper-muted);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.context-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px 1px 0 7px;
  border-radius: 50%;
}

.context-legend i:first-child {
  margin-left: 0;
}

.context-legend-field {
  background: #b9c7c0;
  opacity: 0.7;
}

.context-legend-lab {
  background: #15977e;
  box-shadow: 0 0 0 2px rgba(21, 151, 126, 0.2);
}

.context-legend-pareto {
  width: 18px !important;
  height: 2px !important;
  margin-top: 9px !important;
  border-radius: 0 !important;
  background: #172823;
}

.global-context-svg-wrap {
  overflow-x: auto;
}

.global-context-chart svg {
  display: block;
  width: 100%;
  min-width: 700px;
}

.context-grid {
  stroke: #d8d8ce;
  stroke-width: 1;
}

.context-axis {
  stroke: #829087;
  stroke-width: 1.25;
}

.context-tick,
.context-axis-label {
  fill: #66746d;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.context-field-dot {
  fill: #9eada6;
  fill-opacity: 0.3;
}

.context-lab-dot {
  fill: #15977e;
  stroke: #f7f5ed;
  stroke-width: 1.5;
}

.context-pareto-line {
  fill: none;
  stroke: #172823;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.global-context-chart > p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.table-wrap {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.94rem;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

thead th {
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tbody th {
  color: var(--ink);
  font-weight: 800;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.numeric {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  text-align: right;
}

.method-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 0 78px;
}

.method-note p {
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  color: var(--accent-soft);
  font-weight: 800;
}

.results-footer {
  border-top: 1px solid var(--rule);
  background: var(--canvas-deep);
}

.results-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-block: 27px;
  color: var(--soft-muted);
  font-size: 0.78rem;
}

.results-footer p {
  max-width: 560px;
  margin: 0;
}

.results-footer a {
  color: var(--muted);
}

sup {
  font-size: 0.65em;
  vertical-align: super;
}

@media (max-width: 850px) {
  .results-shell {
    width: min(100% - 36px, 1180px);
  }

  .content-section-alt {
    margin-inline: calc((100vw - min(100vw - 36px, 1180px)) / -2);
    padding-inline: calc((100vw - min(100vw - 36px, 1180px)) / 2);
  }

  .context-strip,
  .configuration-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-strip div:nth-child(2),
  .configuration-summary article:nth-child(2) {
    border-right: 0;
  }

  .context-strip div:nth-child(-n + 2),
  .configuration-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

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

  .threshold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .threshold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .results-shell {
    width: min(100% - 28px, 1180px);
  }

  .results-header-inner {
    min-height: 66px;
  }

  .results-header nav {
    display: none;
  }

  .results-hero {
    padding: 60px 0 42px;
  }

  .results-hero.compact-hero {
    padding: 27px 0 34px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .context-strip,
  .configuration-summary,
  .provider-grid,
  .family-grid,
  .manufacturer-list,
  .threshold-grid {
    grid-template-columns: 1fr;
  }

  .context-strip div,
  .configuration-summary article,
  .context-strip div:nth-child(2),
  .configuration-summary article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .context-strip div:last-child,
  .configuration-summary article:last-child {
    border-bottom: 0;
  }

  .content-section-alt {
    margin-inline: calc((100vw - min(100vw - 28px, 1180px)) / -2);
    padding-inline: calc((100vw - min(100vw - 28px, 1180px)) / 2);
  }

  .section-heading {
    text-align: left;
  }

  .settings-chart figcaption {
    display: block;
    padding: 18px 18px 0;
  }

  .settings-chart figcaption span {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  .chart-note {
    padding: 0 18px 18px;
  }

  .global-context-chart figcaption {
    display: grid;
    padding: 18px 18px 12px;
  }

  .context-legend {
    justify-content: flex-start;
    max-width: none;
  }

  .global-context-chart > p {
    padding: 0 18px 18px;
  }

  .results-footer-inner {
    display: grid;
    gap: 10px;
  }

  th,
  td {
    padding: 13px 14px;
  }
}
