.match-page {
  --mc-navy: #071c3d;
  --mc-gold: #c88a24;
  --mc-gold-soft: #e7cf9f;
  --mc-cream: #fbf7ee;
  --mc-ivory: #fffdf8;
  --mc-border: #e8d7b7;
  --mc-text: #26364d;
  --mc-muted: #697386;
  --mc-terracotta: #9b5c42;
  overflow-x: clip;
}

.match-page .mc-results {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.match-page #matchingFormSection[hidden],
.match-page #matchingResultSection[hidden] {
  display: none !important;
}

.match-page .mc-form-section,
.match-page .mc-results {
  min-width: 0;
  scroll-margin-top: 92px;
}

.match-page .mc-results__toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
  position: static;
}

.match-page .mc-results__toolbar .button {
  min-height: 44px;
}

.match-page .mc-report--structured {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mc-summary-card,
.mc-report-section,
.mc-final-conclusion {
  min-width: 0;
  border: 1px solid var(--mc-border);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 12px 34px rgba(52, 38, 18, 0.07);
}

.mc-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border-top: 4px solid var(--mc-gold);
}

.mc-summary-card.is-supportive { border-top-color: #8f9a4b; background: linear-gradient(120deg, #fffdf8, #f8f7e8); }
.mc-summary-card.is-gold { border-top-color: var(--mc-gold); background: linear-gradient(120deg, #fffdf8, #fff8e9); }
.mc-summary-card.is-amber { border-top-color: #c1842e; background: linear-gradient(120deg, #fffdf8, #fff4df); }
.mc-summary-card.is-terracotta { border-top-color: var(--mc-terracotta); background: linear-gradient(120deg, #fffdf8, #f9eee8); }
.mc-summary-card.is-unavailable { border-top-color: var(--mc-muted); }

.mc-report-kicker {
  margin: 0;
  color: #9c6814;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mc-summary-title {
  margin: 0.55rem 0 0;
  color: var(--mc-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.98;
}

.mc-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.mc-summary-metric {
  min-width: 155px;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(200, 138, 36, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.mc-summary-metric span,
.mc-summary-metric strong { display: block; }
.mc-summary-metric span { color: var(--mc-muted); font-size: 0.7rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.mc-summary-metric strong { margin-top: 0.18rem; color: var(--mc-navy); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.mc-summary-conclusion {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: var(--mc-text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.mc-score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(170px, 17vw, 220px);
  aspect-ratio: 1;
}

.mc-score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mc-score-ring circle { fill: none; stroke-width: 9; }
.mc-score-ring__track { stroke: #ece6db; }
.mc-score-ring__progress { stroke: var(--mc-gold); stroke-linecap: round; }
.mc-summary-card.is-supportive .mc-score-ring__progress { stroke: #879349; }
.mc-summary-card.is-amber .mc-score-ring__progress { stroke: #bd7d22; }
.mc-summary-card.is-terracotta .mc-score-ring__progress { stroke: var(--mc-terracotta); }

.mc-score-ring__value { position: relative; z-index: 1; display: grid; justify-items: center; color: var(--mc-navy); }
.mc-score-ring__value strong { font: 700 clamp(2.5rem, 5vw, 3.7rem)/1 "Cormorant Garamond", Georgia, serif; }
.mc-score-ring__value span { margin-top: 0.22rem; color: var(--mc-muted); font-size: 0.85rem; font-weight: 750; }
.mc-score-validation-error { grid-column: 1 / -1; margin: 0; padding: 0.85rem 1rem; border-radius: 10px; color: #6d4937; background: #f7ebe5; font-weight: 750; }

.mc-report-section {
  padding: clamp(24px, 4vw, 40px);
  border-top: 3px solid rgba(200, 138, 36, 0.52);
}

.match-page .mc-section-title {
  margin: 0;
  color: var(--mc-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.05;
}

.match-page .mc-section-lead {
  max-width: 800px;
  margin: 0.7rem 0 1.35rem;
  color: var(--mc-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.mc-table-shell {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--mc-border);
  border-radius: 16px;
  background: var(--mc-ivory);
}

.mc-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--mc-text);
  font-size: 0.86rem;
}

.mc-data-table th,
.mc-data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee4d3;
  text-align: left;
  vertical-align: top;
}

.mc-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #fffaf0;
  background: var(--mc-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.mc-data-table tbody tr:nth-child(even) { background: rgba(251, 247, 238, 0.65); }
.mc-data-table tbody tr:last-child > * { border-bottom: 0; }
.mc-data-table tbody th { color: var(--mc-navy); font-weight: 800; }
.mc-comparison-table td { font-weight: 650; }
.mc-comparison-table td.is-different { background: rgba(200, 138, 36, 0.08); }

.mc-guna-table { min-width: 1020px; }
.mc-guna-table th:nth-child(1) { width: 11%; }
.mc-guna-table th:nth-child(2) { width: 18%; }
.mc-guna-table th:nth-child(3) { width: 18%; }
.mc-guna-table th:nth-child(4) { width: 10%; }
.mc-guna-table th:nth-child(5) { width: 13%; }
.mc-guna-name-cell { font-size: 0.92rem; }
.mc-guna-pair-cell { color: var(--mc-navy); font-weight: 650; }
.mc-guna-max-cell { font-variant-numeric: tabular-nums; text-align: center !important; }
.mc-guna-meaning-cell { color: var(--mc-muted); line-height: 1.5; }

.mc-progress { min-width: 150px; }
.mc-progress__value { margin-bottom: 0.42rem; color: var(--mc-navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-progress__track { height: 7px; overflow: hidden; border-radius: 999px; background: #e7e8ea; }
.mc-progress__fill { display: block; height: 100%; border-radius: inherit; background: var(--mc-gold); }
.mc-progress.is-strong .mc-progress__fill { background: #a88d35; }
.mc-progress.is-supportive .mc-progress__fill { background: linear-gradient(90deg, #53647a, #c29435); }
.mc-progress.is-moderate .mc-progress__fill { background: #c1842e; }
.mc-progress.is-weak .mc-progress__fill,
.mc-progress.is-concern .mc-progress__fill { background: var(--mc-terracotta); }

.mc-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(200, 138, 36, 0.26);
  border-radius: 999px;
  color: #77500f;
  background: #fff8e8;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.mc-level-pill.is-strong { color: #55602a; background: #f1f3df; border-color: rgba(118, 130, 58, 0.3); }
.mc-level-pill.is-supportive { color: #5b4a1f; background: #f8f1df; }
.mc-level-pill.is-moderate { color: #765017; background: #fff2da; }
.mc-level-pill.is-weak,
.mc-level-pill.is-concern { color: #714431; background: #f7ebe5; border-color: rgba(155, 92, 66, 0.28); }

.mc-high-weight {
  margin-top: 1.25rem;
  padding: 1.2rem;
  border: 1px solid rgba(200, 138, 36, 0.35);
  border-radius: 14px;
  color: var(--mc-text);
  background: #fff8e8;
}

.mc-high-weight h4 { margin: 0; color: var(--mc-navy); font: 700 1.35rem/1.1 "Cormorant Garamond", Georgia, serif; }
.mc-high-weight > p { margin: 0.55rem 0 0; color: var(--mc-muted); line-height: 1.55; }
.mc-high-weight__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.mc-high-weight__item { padding: 0.85rem; border: 1px solid rgba(200, 138, 36, 0.22); border-radius: 10px; background: #fffdf8; }
.mc-high-weight__item strong,
.mc-high-weight__item span { display: block; }
.mc-high-weight__item strong { color: var(--mc-navy); }
.mc-high-weight__item span { margin-top: 0.25rem; color: var(--mc-muted); font-size: 0.78rem; }
.mc-high-weight__checks { display: grid; gap: 0.55rem; margin: 1rem 0 0; }
.mc-high-weight__checks div { display: grid; grid-template-columns: minmax(160px, 0.35fr) 1fr; gap: 0.75rem; }
.mc-high-weight__checks dt { color: var(--mc-navy); font-size: 0.78rem; font-weight: 800; }
.mc-high-weight__checks dd { margin: 0; color: var(--mc-muted); font-size: 0.78rem; }
.mc-high-weight__note { font-weight: 750; color: #704b12 !important; }

.mc-analytics-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.mc-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.65fr); gap: 1.25rem; }
.mc-chart-card,
.mc-breakdown-card { margin: 0; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--mc-border); border-radius: 18px; background: var(--mc-ivory); box-shadow: 0 10px 28px rgba(52, 38, 18, 0.055); }
.mc-chart-card figcaption h4,
.mc-breakdown-card h4 { margin: 0; color: var(--mc-navy); font: 700 1.55rem/1.1 "Cormorant Garamond", Georgia, serif; }
.mc-chart-card figcaption p { margin: 0.45rem 0 1.3rem; color: var(--mc-muted); font-size: 0.82rem; }
.mc-horizontal-chart { display: grid; gap: 0.78rem; }
.mc-chart-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.32rem; color: var(--mc-navy); font-size: 0.78rem; }
.mc-chart-row__head strong { font-variant-numeric: tabular-nums; }
.mc-chart-row__track { height: 18px; overflow: hidden; border-radius: 5px; background: #e7e8ea; }
.mc-chart-row__fill { position: relative; display: block; min-width: 0; height: 100%; border-radius: inherit; background: var(--mc-gold); }
.mc-chart-row.is-strong .mc-chart-row__fill { background: #9b873a; }
.mc-chart-row.is-supportive .mc-chart-row__fill { background: linear-gradient(90deg, #53647a, #c29435); }
.mc-chart-row.is-moderate .mc-chart-row__fill { background: #c1842e; }
.mc-chart-row.is-weak .mc-chart-row__fill,
.mc-chart-row.is-concern .mc-chart-row__fill { background: var(--mc-terracotta); }
.mc-chart-row__percent { position: absolute; right: 0.38rem; top: 50%; transform: translateY(-50%); color: #fff; font-size: 0.62rem; font-weight: 850; }
.mc-chart-row__fill[style*="width: 0"] .mc-chart-row__percent { display: none; }
.mc-chart-axis { display: flex; justify-content: space-between; margin-top: -0.2rem; color: #8b919b; font-size: 0.62rem; }

.mc-breakdown-table { width: 100%; margin-top: 1rem; border-collapse: collapse; color: var(--mc-text); font-size: 0.8rem; }
.mc-breakdown-table th,
.mc-breakdown-table td { padding: 0.52rem 0.2rem; border-bottom: 1px solid #eee4d3; text-align: left; }
.mc-breakdown-table th:last-child,
.mc-breakdown-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mc-breakdown-total th { padding-top: 0.8rem; border-bottom: 0; color: var(--mc-navy); font-size: 0.88rem; }

.mc-highlights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.mc-highlight-card { padding: 1.1rem; border: 1px solid var(--mc-border); border-radius: 14px; background: #fffdf8; }
.mc-highlight-card.is-strong { border-top: 3px solid #9b873a; }
.mc-highlight-card.is-attention { border-top: 3px solid var(--mc-terracotta); }
.mc-highlight-card h4 { margin: 0; color: var(--mc-navy); font: 700 1.3rem/1.1 "Cormorant Garamond", Georgia, serif; }
.mc-highlight-card ul { display: grid; gap: 0.55rem; padding: 0; margin: 0.9rem 0 0; list-style: none; }
.mc-highlight-card li { display: flex; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.45rem; border-bottom: 1px solid #eee4d3; color: var(--mc-text); font-size: 0.8rem; }
.mc-highlight-card li:last-child { border-bottom: 0; }
.mc-highlight-card li span { color: var(--mc-muted); text-align: right; }
.mc-highlight-empty { margin: 0.8rem 0 0; color: var(--mc-muted); font-size: 0.82rem; }

.mc-accordion-list { display: grid; gap: 0.7rem; }
.mc-accordion { overflow: hidden; border: 1px solid var(--mc-border); border-radius: 12px; background: #fffdf8; }
.mc-accordion summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; color: var(--mc-navy); cursor: pointer; list-style: none; }
.mc-accordion summary::-webkit-details-marker { display: none; }
.mc-accordion summary::after { grid-column: 3; content: "+"; color: var(--mc-gold); font-size: 1.25rem; line-height: 1; }
.mc-accordion[open] summary::after { content: "−"; }
.mc-accordion-summary__title { font-weight: 850; }
.mc-accordion-summary__meta { color: var(--mc-muted); font-size: 0.78rem; font-weight: 700; }
.mc-accordion-body { display: grid; gap: 0; padding: 0 1.1rem 1rem; margin: 0; }
.mc-accordion-row { display: grid; grid-template-columns: minmax(180px, 0.28fr) 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid #eee4d3; }
.mc-accordion-row dt { color: var(--mc-navy); font-size: 0.76rem; font-weight: 800; }
.mc-accordion-row dd { margin: 0; color: var(--mc-muted); font-size: 0.82rem; line-height: 1.55; }

.mc-factor-stack { display: grid; gap: 0.85rem; }
.mc-factor-card { padding: 1.15rem 1.25rem; border: 1px solid var(--mc-border); border-radius: 14px; background: #fffdf8; }
.mc-factor-card__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.65rem 1rem; }
.mc-factor-card__header h4 { margin: 0; color: var(--mc-navy); font: 700 1.35rem/1.1 "Cormorant Garamond", Georgia, serif; }
.mc-factor-result { padding: 0.35rem 0.55rem; border: 1px solid rgba(200, 138, 36, 0.25); border-radius: 999px; color: #77500f; background: #fff8e8; font-size: 0.68rem; font-weight: 800; }
.mc-factor-score { grid-column: 1 / -1; color: var(--mc-gold); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mc-factor-card__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 0.9rem; }
.mc-factor-card__details > div { padding: 0.75rem; border-radius: 10px; background: #fbf7ee; }
.mc-factor-card__details span { color: var(--mc-navy); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.mc-factor-card__details p,
.mc-factor-card__explanation { margin: 0.35rem 0 0; color: var(--mc-muted); font-size: 0.8rem; line-height: 1.55; }
.mc-factor-card__explanation { margin-top: 0.9rem; }

.mc-review-notes ul { display: grid; gap: 0.6rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.mc-review-note { padding: 0.8rem 0.9rem; border: 1px solid rgba(200, 138, 36, 0.24); border-radius: 10px; color: var(--mc-text); background: #fff8e8; font-size: 0.82rem; line-height: 1.55; }
.mc-review-note--warn { border-color: rgba(155, 92, 66, 0.28); background: #f7ebe5; }

.mc-final-conclusion { padding: clamp(28px, 5vw, 48px); border-top: 4px solid var(--mc-gold); }
.mc-final-conclusion.is-supportive { border-top-color: #879349; }
.mc-final-conclusion.is-amber { border-top-color: #c1842e; }
.mc-final-conclusion.is-terracotta { border-top-color: var(--mc-terracotta); }
.mc-final-conclusion h3 { margin: 0.55rem 0 0; color: var(--mc-navy); font: 700 clamp(2rem, 4vw, 3.4rem)/1 "Cormorant Garamond", Georgia, serif; }
.mc-final-conclusion__summary { max-width: 900px; margin: 1rem 0 0; color: var(--mc-text); line-height: 1.7; }
.mc-final-conclusion__traditional { margin: 0.85rem 0 0; color: var(--mc-muted); font-size: 0.84rem; line-height: 1.6; }
.mc-final-conclusion__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.15rem; }
.mc-final-conclusion__grid > div { padding: 0.9rem; border: 1px solid var(--mc-border); border-radius: 10px; background: #fbf7ee; }
.mc-final-conclusion__grid span { color: var(--mc-navy); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.mc-final-conclusion__grid p { margin: 0.35rem 0 0; color: var(--mc-muted); font-size: 0.82rem; }
.mc-final-conclusion__recommendation { margin: 1rem 0 0; color: var(--mc-navy); font-weight: 700; line-height: 1.6; }
.mc-final-conclusion__timing { margin: 0.5rem 0 0; color: var(--mc-muted); font-size: 0.8rem; }
.mc-final-conclusion .button { margin-top: 1.25rem; }

@media (max-width: 960px) {
  .mc-summary-card { grid-template-columns: 1fr auto; }
  .mc-analytics-grid { grid-template-columns: 1fr; }
  .mc-breakdown-card { width: 100%; }
}

@media (max-width: 767px) {
  .match-page .mc-form-section,
  .match-page .mc-results {
    scroll-margin-top: calc(var(--mobile-header-height, 68px) + 12px);
  }

  .match-page .mc-report--structured { gap: 1rem; }
  .mc-summary-card { grid-template-columns: 1fr; text-align: center; }
  .mc-summary-metrics { justify-content: center; }
  .mc-summary-conclusion { margin-inline: auto; }
  .mc-score-ring { margin-inline: auto; }
  .mc-report-section { padding: 20px 16px; border-radius: 17px; }

  .mc-comparison-table thead { display: none; }
  .mc-comparison-table,
  .mc-comparison-table tbody { display: block; }
  .mc-comparison-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.8rem; border-bottom: 1px solid #eee4d3; }
  .mc-comparison-table tr:last-child { border-bottom: 0; }
  .mc-comparison-table th,
  .mc-comparison-table td { display: grid; gap: 0.2rem; padding: 0.45rem; border: 0; }
  .mc-comparison-table th { grid-column: 1 / -1; padding-bottom: 0.3rem; }
  .mc-comparison-table td::before { color: var(--mc-muted); content: attr(data-label); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; }

  .mc-guna-table { min-width: 0; }
  .mc-guna-table thead { display: none; }
  .mc-guna-table,
  .mc-guna-table tbody,
  .mc-guna-table tr,
  .mc-guna-table th,
  .mc-guna-table td { display: block; width: 100%; }
  .mc-guna-table th,
  .mc-guna-table td { width: 100% !important; }
  .mc-guna-table tr { padding: 1rem; border-bottom: 1px solid var(--mc-border); background: #fffdf8 !important; }
  .mc-guna-table tr:last-child { border-bottom: 0; }
  .mc-guna-table th,
  .mc-guna-table td { padding: 0.48rem 0; border: 0; text-align: left !important; }
  .mc-guna-table td::before { display: block; margin-bottom: 0.18rem; color: var(--mc-muted); content: attr(data-label); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
  .mc-guna-name-cell { font-size: 1.15rem; }
  .mc-progress { width: 100%; }
  .mc-high-weight__grid,
  .mc-highlights-grid,
  .mc-factor-card__details,
  .mc-final-conclusion__grid { grid-template-columns: 1fr; }
  .mc-high-weight__checks div,
  .mc-accordion-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .mc-accordion summary { grid-template-columns: 1fr auto; }
  .mc-accordion summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .mc-accordion-summary__meta { grid-column: 1; }
}

@media (max-width: 480px) {
  .mc-summary-card { padding: 24px 16px; border-radius: 17px; }
  .mc-summary-metrics { display: grid; grid-template-columns: 1fr 1fr; }
  .mc-summary-metric { min-width: 0; padding: 0.65rem; }
  .mc-score-ring { width: 168px; }
  .mc-high-weight { padding: 1rem; }
  .mc-factor-card__header { grid-template-columns: 1fr; }
  .mc-factor-result { justify-self: start; }
}

@media print {
  .match-page .site-header,
  .match-page .site-footer,
  .match-page .mc-form,
  .match-page .mc-hero { display: none !important; }
  .match-page .mc-results { display: block !important; }
  .match-page .mc-report--structured { gap: 0.8rem; }
  .mc-summary-card,
  .mc-report-section,
  .mc-final-conclusion { break-inside: avoid; box-shadow: none; }
  .mc-accordion > * { display: block !important; }
  .mc-accordion-body { break-inside: avoid; }
}
