:root {
  --mt-env: #056839;
  --mt-env-deep: #024021;
  --mt-supp: #9a7000;
  --mt-supp-deep: #5d4300;
  --mt-blue: #0b4f87;
  --mt-bg: #f4f7f5;
  --mt-surface: #ffffff;
  --mt-soft: #eaf3ee;
  --mt-ink: #17201c;
  --mt-muted: #4b5b53;
  --mt-line: #d7e1db;
  --mt-danger: #b42318;
  --mt-success: #087443;
}

html[data-theme="dark"] {
  --mt-bg: #0f172a;
  --mt-surface: #172337;
  --mt-soft: #1e3143;
  --mt-ink: #f8fafc;
  --mt-muted: #d5dee9;
  --mt-line: #3b4b5f;
  --mt-danger: #ff9b91;
  --mt-success: #53e0a3;
}

.mt-page {
  background: var(--mt-bg);
  color: var(--mt-ink);
}

.mt-page h1,
.mt-page h2,
.mt-page h3,
.mt-page p {
  text-wrap: pretty;
}

.mt-hero {
  background: var(--mt-env-deep);
  color: #ffffff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.mt-page[data-tool-theme="supplement"] .mt-hero {
  background: #3f3518;
}

.mt-page[data-tool-theme="technology"] .mt-hero {
  background: #073c73;
}

.mt-hero-grid {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.mt-breadcrumbs {
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mt-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mt-hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  max-width: 16ch;
}

html[dir="rtl"] .mt-hero h1 {
  letter-spacing: 0;
}

.mt-hero-copy > p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.9;
  margin: 1.25rem 0 0;
  max-width: 65ch;
}

.mt-trust-list {
  border-block: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
}

.mt-trust-list li {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.mt-trust-list i {
  color: #7ee2ae;
}

.mt-workspace {
  padding-block: clamp(3rem, 7vw, 5.75rem);
}

.mt-workspace-grid {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
}

.mt-intro {
  position: sticky;
  top: 7.5rem;
}

.mt-intro h2 {
  color: var(--mt-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin-bottom: 0.85rem;
}

.mt-intro p {
  color: var(--mt-muted);
  line-height: 1.9;
}

.mt-privacy-note {
  align-items: flex-start;
  background: var(--mt-soft);
  border-radius: 12px;
  color: var(--mt-ink);
  display: flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 1rem;
}

.mt-tool-panel {
  background: var(--mt-surface);
  border-radius: 16px;
  box-shadow: 0 7px 0 rgba(2, 64, 33, 0.12);
  overflow: hidden;
}

.mt-page[data-tool-theme="supplement"] .mt-tool-panel {
  box-shadow: 0 7px 0 rgba(93, 67, 0, 0.18);
}

.mt-progress {
  background: var(--mt-soft);
  padding: 1.1rem clamp(1rem, 4vw, 2.25rem);
}

.mt-progress-copy {
  align-items: center;
  color: var(--mt-muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.mt-progress-track {
  background: color-mix(in srgb, var(--mt-line) 70%, transparent);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.mt-progress-bar {
  background: var(--mt-env);
  border-radius: inherit;
  height: 100%;
  transform-origin: right center;
  transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 33.333%;
}

html[dir="ltr"] .mt-progress-bar {
  transform-origin: left center;
}

.mt-page[data-tool-theme="supplement"] .mt-progress-bar {
  background: var(--mt-supp);
}

.mt-page[data-tool-theme="technology"] .mt-progress-bar {
  background: var(--mt-blue);
}

.mt-form {
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.mt-step {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.mt-step[hidden] {
  display: none;
}

.mt-step legend {
  color: var(--mt-ink);
  float: inline-start;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  width: 100%;
}

.mt-step-description {
  clear: both;
  color: var(--mt-muted);
  margin-bottom: 1.5rem;
}

.mt-field {
  margin-top: 1.35rem;
}

.mt-field-label {
  color: var(--mt-ink);
  display: block;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.mt-select {
  appearance: none;
  background: var(--mt-surface);
  border: 2px solid var(--mt-line);
  border-radius: 10px;
  color: var(--mt-ink);
  min-height: 52px;
  padding: 0.65rem 1rem;
  width: 100%;
}

.mt-select:focus {
  border-color: var(--mt-env);
}

.mt-page[data-tool-theme="supplement"] .mt-select:focus {
  border-color: var(--mt-supp);
}

.mt-choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.mt-choice {
  cursor: pointer;
  display: block;
  position: relative;
}

.mt-choice input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.mt-choice-content {
  align-items: flex-start;
  background: var(--mt-surface);
  border: 2px solid var(--mt-line);
  border-radius: 12px;
  color: var(--mt-ink);
  display: flex;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.95rem;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mt-choice-mark {
  align-items: center;
  border: 2px solid var(--mt-line);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  margin-top: 0.1rem;
  width: 22px;
}

.mt-choice-mark::after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 8px;
  transform: scale(0);
  transition: transform 160ms ease;
  width: 8px;
}

.mt-choice input:checked + .mt-choice-content {
  background: color-mix(in srgb, var(--mt-env) 10%, var(--mt-surface));
  border-color: var(--mt-env);
}

.mt-page[data-tool-theme="supplement"] .mt-choice input:checked + .mt-choice-content {
  background: color-mix(in srgb, var(--mt-supp) 12%, var(--mt-surface));
  border-color: var(--mt-supp);
}

.mt-page[data-tool-theme="technology"] .mt-choice input:checked + .mt-choice-content {
  background: color-mix(in srgb, var(--mt-blue) 10%, var(--mt-surface));
  border-color: var(--mt-blue);
}

.mt-choice input:checked + .mt-choice-content .mt-choice-mark {
  background: var(--mt-env);
  border-color: var(--mt-env);
}

.mt-page[data-tool-theme="supplement"] .mt-choice input:checked + .mt-choice-content .mt-choice-mark {
  background: var(--mt-supp);
  border-color: var(--mt-supp);
}

.mt-page[data-tool-theme="technology"] .mt-choice input:checked + .mt-choice-content .mt-choice-mark {
  background: var(--mt-blue);
  border-color: var(--mt-blue);
}

.mt-choice input:checked + .mt-choice-content .mt-choice-mark::after {
  transform: scale(1);
}

.mt-choice input:focus-visible + .mt-choice-content {
  outline: 3px solid color-mix(in srgb, var(--mt-env) 28%, transparent);
  outline-offset: 3px;
}

.mt-choice strong,
.mt-choice small {
  display: block;
}

.mt-choice small {
  color: var(--mt-muted);
  line-height: 1.55;
  margin-top: 0.2rem;
}

.mt-question-list {
  display: grid;
  gap: 1rem;
}

.mt-question {
  border-bottom: 1px solid var(--mt-line);
  padding-bottom: 1rem;
}

.mt-question:last-child {
  border-bottom: 0;
}

.mt-question > p {
  color: var(--mt-ink);
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.mt-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mt-answer-row .mt-choice-content {
  min-width: 94px;
  padding: 0.65rem 0.8rem;
}

.mt-validation {
  color: var(--mt-danger);
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 1rem;
}

.mt-form-actions {
  align-items: center;
  border-top: 1px solid var(--mt-line);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.mt-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  gap: 0.6rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
}

.mt-button-primary {
  background: var(--mt-env);
  color: #ffffff;
}

.mt-page[data-tool-theme="supplement"] .mt-button-primary {
  background: var(--mt-supp);
}

.mt-page[data-tool-theme="technology"] .mt-button-primary {
  background: var(--mt-blue);
}

.mt-button-secondary {
  border: 2px solid var(--mt-line);
  color: var(--mt-ink);
}

.mt-button[hidden] {
  display: none;
}

.mt-result {
  background: var(--mt-surface);
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.mt-result[hidden] {
  display: none;
}

.mt-result-label {
  color: var(--mt-success);
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.mt-result h2 {
  color: var(--mt-ink);
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  margin-bottom: 0.85rem;
}

.mt-result-summary {
  color: var(--mt-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 70ch;
}

.mt-meter {
  background: var(--mt-soft);
  border-radius: 999px;
  height: 14px;
  margin: 1.4rem 0 0.45rem;
  overflow: hidden;
}

.mt-meter > span {
  background: var(--mt-env);
  display: block;
  height: 100%;
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mt-page[data-tool-theme="supplement"] .mt-meter > span {
  background: var(--mt-supp);
}

.mt-page[data-tool-theme="technology"] .mt-meter > span {
  background: var(--mt-blue);
}

.mt-score-line {
  color: var(--mt-muted);
  font-weight: 800;
}

.mt-result-facts {
  border-block: 1px solid var(--mt-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.35rem 0 0;
}

.mt-result-fact {
  min-width: 0;
  padding: 1rem;
}

.mt-result-fact + .mt-result-fact {
  border-inline-start: 1px solid var(--mt-line);
}

.mt-result-fact dt {
  color: var(--mt-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.mt-result-fact dd {
  color: var(--mt-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

.mt-result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin-top: 1.5rem;
}

.mt-result-block {
  background: var(--mt-soft);
  border-radius: 12px;
  padding: 1.1rem;
}

.mt-result-block h3 {
  color: var(--mt-ink);
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.mt-result-block p,
.mt-result-block li {
  color: var(--mt-muted);
  font-size: 0.95rem;
}

.mt-result-block ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-inline-start: 1.2rem;
}

.mt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mt-contact-options {
  align-items: center;
  background: var(--mt-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.mt-contact-options p {
  color: var(--mt-muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.mt-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.mt-contact-links a {
  color: var(--mt-ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--mt-ink) 35%, transparent);
  text-underline-offset: 0.22em;
}

.mt-contact-links a:hover {
  text-decoration-color: currentColor;
}

.mt-contact-links a:focus-visible {
  outline: 3px solid var(--mt-success);
  outline-offset: 4px;
}

.mt-disclaimer {
  border-top: 1px solid var(--mt-line);
  color: var(--mt-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.mt-more-tools {
  background: var(--mt-surface);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.mt-more-tools h2 {
  color: var(--mt-ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.mt-hub {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.mt-hub-intro {
  color: var(--mt-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 70ch;
}

.mt-hub-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.mt-hub-item {
  background: var(--mt-surface);
  border-radius: 14px;
  color: var(--mt-ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.35rem, 4vw, 2rem);
}

.mt-hub-item[data-kind="environmental"] {
  border-top: 5px solid var(--mt-env);
}

.mt-hub-item[data-kind="supplement"] {
  border-top: 5px solid var(--mt-supp);
}

.mt-hub-item[data-kind="technology"] {
  border-top: 5px solid var(--mt-blue);
}

.mt-hub-item h2 {
  color: var(--mt-ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.mt-hub-item p {
  color: var(--mt-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.mt-hub-item .mt-button {
  align-self: flex-start;
  margin-top: auto;
}

.mt-inline-link {
  color: var(--mt-env);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.mt-page[data-tool-theme="supplement"] .mt-inline-link {
  color: var(--mt-supp-deep);
}

html[data-theme="dark"] .mt-page[data-tool-theme="supplement"] .mt-inline-link {
  color: #f3cf55;
}

.mt-page[data-tool-theme="technology"] .mt-inline-link {
  color: var(--mt-blue);
}

html[data-theme="dark"] .mt-page[data-tool-theme="technology"] .mt-inline-link {
  color: #71b7f2;
}

.cro-entry {
  background: var(--surface-1, #f7f9f8);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cro-entry-layout {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.cro-entry h2 {
  color: var(--ink-strong, #17201c);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  margin-bottom: 0.8rem;
}

.cro-entry p {
  color: var(--ink-muted, #4b5b53);
  line-height: 1.9;
}

.cro-entry-links {
  display: grid;
  gap: 0.85rem;
}

.cro-entry-link {
  align-items: center;
  background: var(--surface-0, #ffffff);
  border-radius: 12px;
  color: var(--ink-strong, #17201c);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 1rem 1.1rem;
}

.cro-entry-link strong,
.cro-entry-link span {
  display: block;
}

.cro-entry-link span {
  color: var(--ink-muted, #4b5b53);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.cro-entry-link i {
  color: var(--focus-ring, #0b7a48);
}

@media (max-width: 860px) {
  .mt-hero-grid,
  .mt-workspace-grid,
  .cro-entry-layout {
    grid-template-columns: 1fr;
  }

  .mt-intro {
    position: static;
  }

  .mt-hero h1 {
    max-width: 20ch;
  }
}

@media (max-width: 560px) {
  .mt-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .mt-button {
    width: 100%;
  }

  .mt-result-facts {
    grid-template-columns: 1fr;
  }

  .mt-result-fact + .mt-result-fact {
    border-block-start: 1px solid var(--mt-line);
    border-inline-start: 0;
  }

  .mt-contact-options,
  .mt-contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .mt-contact-links a {
    min-height: 44px;
    padding-block: 0.65rem;
  }

  .mt-answer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mt-answer-row .mt-choice-content {
    min-width: 0;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-progress-bar,
  .mt-meter > span,
  .mt-choice-content {
    transition: none;
  }
}
