/* And Again Advisory, structure matcher styles (andagain-tools v1.0.0)
   Mounts inside <div data-aaa-matcher></div>. Classes prefixed aaa-mt-.
   Same rules as the estimator: inherited type, indigo accents, gold only
   as 1px rules, no radius, no shadows, no gradients, 44px targets. */

.aaa-mt {
  --aaa-mt-indigo: #06037A;
  --aaa-mt-indigo-hover: #0A06A3;
  --aaa-mt-gold: #D2AA24;
  --aaa-mt-ink: #15132B;
  --aaa-mt-body: #3B394F;
  --aaa-mt-slate: #6B6980;
  --aaa-mt-hair: #E6E1D2;
  --aaa-mt-hair-strong: #D6CFB9;
  --aaa-mt-paper: #FAF8F2;
  --aaa-mt-white: #FFFFFF;
  --aaa-mt-ease: cubic-bezier(.2, .7, .2, 1);

  display: block; width: 100%; max-width: 100%; min-width: 0;
  color: var(--aaa-mt-body); font-family: inherit; font-size: 17px; line-height: 1.6; text-align: left;
  overflow-wrap: break-word;
}
.aaa-mt *, .aaa-mt *::before, .aaa-mt *::after { box-sizing: border-box; }
.aaa-mt :where(h3, p, table) { margin: 0; padding: 0; }
.aaa-mt :where(button) { font-family: inherit; color: inherit; border-radius: 0; box-shadow: none; }
.aaa-mt :focus { outline: none; }
.aaa-mt :focus-visible { outline: 2px solid var(--aaa-mt-indigo); outline-offset: 3px; }
.aaa-mt-headline:focus { outline: none; }

.aaa-mt-q { margin-bottom: 36px; }
.aaa-mt-qh { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--aaa-mt-ink); }
.aaa-mt-n { font-size: 12px; letter-spacing: .14em; color: var(--aaa-mt-slate); font-weight: 500; font-variant-numeric: tabular-nums; }

.aaa-mt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.aaa-mt-opt {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 13px 16px;
  text-align: left; cursor: pointer; background: var(--aaa-mt-white); border: 1px solid var(--aaa-mt-hair-strong);
}
.aaa-mt-opt-l { font-size: 15px; font-weight: 600; color: var(--aaa-mt-ink); line-height: 1.3; }
.aaa-mt-opt-s { font-size: 13px; color: var(--aaa-mt-slate); line-height: 1.4; }
.aaa-mt-opt:hover { border-color: var(--aaa-mt-indigo); }
.aaa-mt-opt.aaa-mt-is-on { background: var(--aaa-mt-indigo); border-color: var(--aaa-mt-indigo); }
.aaa-mt-opt.aaa-mt-is-on .aaa-mt-opt-l { color: var(--aaa-mt-white); }
.aaa-mt-opt.aaa-mt-is-on .aaa-mt-opt-s { color: rgba(255, 255, 255, .80); }

.aaa-mt-result { margin-top: 48px; }
.aaa-mt-result[hidden] { display: none; }
.aaa-mt-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--aaa-mt-slate); }
.aaa-mt-headline { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; color: var(--aaa-mt-ink); }
.aaa-mt-tablewrap { max-width: 100%; }
.aaa-mt-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.aaa-mt-table td, .aaa-mt-table th { padding: 10px 0; border-bottom: 1px solid var(--aaa-mt-hair); text-align: left; vertical-align: top; }
.aaa-mt-table td:last-child, .aaa-mt-table th:last-child { padding-left: 16px; text-align: right; }
.aaa-mt-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--aaa-mt-ink); }
.aaa-mt-table th { padding-top: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aaa-mt-slate); font-weight: 500; }
.aaa-mt-table td { color: var(--aaa-mt-body); }
.aaa-mt-table b { color: var(--aaa-mt-ink); font-weight: 600; }
.aaa-mt-table tr.aaa-mt-fee td:last-child { white-space: normal; font-weight: 600; min-width: 11em; }
.aaa-mt-table tr.aaa-mt-total td { font-weight: 600; color: var(--aaa-mt-indigo); border-top: 1px solid var(--aaa-mt-gold); border-bottom: 1px solid var(--aaa-mt-gold); }
.aaa-mt-promise { margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--aaa-mt-indigo); }
.aaa-mt-note { margin-top: 16px; font-size: 15px; color: var(--aaa-mt-slate); max-width: 72ch; }
.aaa-mt-fine { margin-top: 10px; font-size: 13px; color: var(--aaa-mt-slate); max-width: 80ch; }

.aaa-mt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.aaa-mt-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--aaa-mt-white); border: 1px solid var(--aaa-mt-indigo); color: var(--aaa-mt-indigo);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.aaa-mt-btn:hover { background: var(--aaa-mt-paper); color: var(--aaa-mt-indigo-hover); border-color: var(--aaa-mt-indigo-hover); }
.aaa-mt-btn-primary { background: var(--aaa-mt-indigo); color: var(--aaa-mt-white); }
.aaa-mt-btn-primary:hover { background: var(--aaa-mt-indigo-hover); color: var(--aaa-mt-white); }

@media (max-width: 767px) {
  .aaa-mt { font-size: 16px; }
  .aaa-mt-actions .aaa-mt-btn { flex: 1 1 100%; }
  .aaa-mt-table tr.aaa-mt-fee td:last-child { min-width: 8em; }
}
@media (prefers-reduced-motion: no-preference) {
  .aaa-mt-opt, .aaa-mt-btn { transition: background-color .2s var(--aaa-mt-ease), border-color .2s var(--aaa-mt-ease), color .2s var(--aaa-mt-ease); }
}
