:root {
  --diligence-warning: 34 82% 31%;
  --diligence-danger: 0 65% 39%;
}

.ma-dd {
  background: var(--site-brand-background);
  color: var(--site-brand-text);
  font-family: var(--site-brand-body);
  line-height: 1.65;
}
.ma-dd *, .ma-dd *::before, .ma-dd *::after { box-sizing: border-box; }
.ma-dd [hidden] { display: none !important; }
.ma-dd :is(h1,h2,h3,p,dl,dd,fieldset,legend) { margin: 0; }
.ma-dd :is(h1,h2,h3,legend) { color: inherit; font-family: var(--site-brand-heading); }
.ma-dd a { color: var(--site-brand-blue); text-underline-offset: 0.2em; }
.ma-dd a:hover { color: var(--site-brand-green-cta-hover); }
.ma-dd :is(button,a,input,textarea):focus-visible { outline: 3px solid var(--site-brand-blue); outline-offset: 4px; }
.ma-dd__container { margin-inline: auto; width: min(1200px, calc(100% - 6rem)); }
.ma-dd__hero { background: var(--site-brand-secondary); color: var(--site-brand-background); padding: 5rem 0 3rem; }
.ma-dd__hero-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr); gap: 4.5rem; align-items: center; }
.ma-dd .ma-dd__eyebrow { color: var(--site-brand-blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.6; text-transform: uppercase; }
.ma-dd__hero .ma-dd__eyebrow { color: var(--site-brand-primary); margin-bottom: 1.5rem; }
.ma-dd__hero h1 { font-size: clamp(2.25rem, 3.45vw, 3.35rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.17; max-width: 20ch; }
.ma-dd .ma-dd__hero-subhead { color: color-mix(in srgb, var(--site-brand-background) 88%, var(--site-brand-secondary)); font-size: 1.1rem; line-height: 1.7; margin-top: 1.75rem; max-width: 59ch; }
.ma-dd__hero .ma-dd__button { margin-top: 2rem; }
.ma-dd__memo { border-left: 2px solid var(--site-brand-primary); padding: 0.25rem 0 0.25rem 2rem; }
.ma-dd__memo-label { color: var(--site-brand-primary); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ma-dd__memo h2 { font-size: 1.45rem; font-weight: 500; line-height: 1.4; margin-top: 1rem; }
.ma-dd .ma-dd__memo p { color: color-mix(in srgb, var(--site-brand-background) 82%, var(--site-brand-secondary)); font-size: 0.94rem; margin-top: 1rem; }
.ma-dd__memo dl { border-top: 1px solid color-mix(in srgb, var(--site-brand-background) 20%, transparent); margin-top: 1.5rem; padding-top: 0.6rem; }
.ma-dd__memo dl div { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; padding: 0.55rem 0; }
.ma-dd__memo dt { font-size: 0.85rem; }
.ma-dd__memo dd { font-size: 1.05rem; font-weight: 800; }
.ma-dd__hero-note { border-top: 1px solid color-mix(in srgb, var(--site-brand-background) 20%, transparent); color: var(--site-brand-accent); font-size: 0.79rem; margin-top: 3rem !important; padding-top: 1.25rem; }
.ma-dd__workspace { padding-block: 4.5rem; }
.ma-dd__workspace-grid { align-items: start; display: grid; gap: 4.5rem; grid-template-columns: minmax(0, 1fr) 255px; }
.ma-dd__intro h2 { font-size: clamp(1.8rem, 2.5vw, 2.35rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; margin-top: 0.7rem; max-width: 25ch; }
.ma-dd__intro p:last-child { color: var(--site-brand-graphite); font-size: 0.97rem; margin-top: 1rem; }
.ma-dd__diagnostic { margin-top: 2.5rem; }
.ma-dd__form-wrap, .ma-dd form { position: relative; }
.ma-dd__honeypot { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.ma-dd__progress-header { align-items: baseline; display: flex; flex-wrap: wrap; font-size: 0.8rem; font-weight: 700; gap: 0.5rem 1rem; justify-content: space-between; }
.ma-dd__progress-header span:last-child { color: var(--site-brand-graphite); font-weight: 500; }
.ma-dd__progress { appearance: none; border: 0; border-radius: 0; display: block; height: 4px; margin: 0.75rem 0 2.5rem; width: 100%; }
.ma-dd__progress::-webkit-progress-bar { background: var(--site-brand-border); }
.ma-dd__progress::-webkit-progress-value { background: var(--site-brand-blue); transition: width 0.2s; }
.ma-dd__progress::-moz-progress-bar { background: var(--site-brand-blue); }
.ma-dd .ma-dd__question { border: 0; border-bottom: 1px solid var(--site-brand-border); margin-bottom: 2.5rem; min-width: 0; padding: 0 0 2.5rem; }
.ma-dd__question legend { align-items: baseline; display: flex; font-size: 1.1rem; font-weight: 600; gap: 1rem; line-height: 1.45; margin-bottom: 1.25rem; padding: 0; width: 100%; }
.ma-dd__question-number { color: var(--site-brand-blue); flex-shrink: 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ma-dd__options { display: grid; gap: 0.65rem; }
.ma-dd .ma-dd__option { align-items: start; background: var(--site-brand-background); border: 1px solid var(--site-brand-border); border-radius: var(--site-brand-radius-sm, 0.25rem); cursor: pointer; display: grid; font-size: 0.91rem; font-weight: 400; gap: 0.75rem; grid-template-columns: 1.15rem 1.25rem minmax(0, 1fr) 2.2rem; line-height: 1.6; padding: 1rem; transition: border-color 0.15s, background-color 0.15s; }
.ma-dd__option:hover { background: var(--site-brand-surface); border-color: var(--site-brand-blue); }
.ma-dd__option:has(input:checked) { background: var(--site-brand-blue-surface); border-color: var(--site-brand-blue); box-shadow: inset 3px 0 0 var(--site-brand-blue); }
.ma-dd__option input[type="radio"] { accent-color: var(--site-brand-blue); appearance: auto; cursor: pointer; height: 1.1rem; margin: 0.2rem 0 0; padding: 0; position: static; width: 1.1rem; }
.ma-dd__option-letter { color: var(--site-brand-blue); font-size: 0.8rem; font-weight: 800; padding-top: 0.1rem; }
.ma-dd__option-points { color: var(--site-brand-graphite); font-size: 0.73rem; font-variant-numeric: tabular-nums; padding-top: 0.15rem; text-align: right; white-space: nowrap; }
.ma-dd__button { align-items: center; border: 1px solid transparent; border-radius: var(--site-brand-radius-sm, 0.25rem); cursor: pointer; display: inline-flex; font: 700 0.87rem/1.5 var(--site-brand-body); gap: 1.25rem; justify-content: center; min-height: 3.3rem; padding: 0.95rem 1.5rem; text-align: center; text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.ma-dd .ma-dd__button--primary { background: var(--site-brand-green-cta); color: var(--site-brand-background); }
.ma-dd .ma-dd__button--primary:hover, .ma-dd .ma-dd__button--primary:focus-visible { background: var(--site-brand-green-cta-hover); color: var(--site-brand-background); }
.ma-dd .ma-dd__button--secondary { background: var(--site-brand-background); border-color: var(--site-brand-blue); color: var(--site-brand-blue); }
.ma-dd .ma-dd__button--secondary:hover { background: var(--site-brand-blue-surface); }
.ma-dd .ma-dd__button:disabled { background: var(--site-brand-border); border-color: var(--site-brand-border); color: var(--site-brand-graphite); cursor: not-allowed; opacity: 1; }
.ma-dd__button:active:not(:disabled) { transform: translateY(1px); }
.ma-dd__calculate-row p { color: var(--site-brand-graphite); font-size: 0.8rem; margin-top: 0.9rem; max-width: 55ch; }
.ma-dd__sidebar { border-top: 2px solid var(--site-brand-blue); padding-top: 1.25rem; position: sticky; top: calc(var(--site-nav-height, 127px) + 2rem); }
.ma-dd__sidebar h2 { font-size: 1.1rem; font-weight: 600; }
.ma-dd__rubric { display: grid; gap: 1.3rem; margin-top: 1.5rem !important; }
.ma-dd__rubric dt { font-size: 0.84rem; font-weight: 800; }
.ma-dd__rubric dd { color: var(--site-brand-graphite); font-size: 0.83rem; margin-top: 0.2rem; }
.ma-dd__sidebar-note { border-top: 1px solid var(--site-brand-border); color: var(--site-brand-graphite); font-size: 0.82rem; margin-top: 1.75rem !important; padding-top: 1.5rem; }
.ma-dd__sidebar a { display: inline-block; font-size: 0.81rem; font-weight: 700; margin-top: 1rem; }
.ma-dd__results { border-top: 2px solid var(--site-brand-blue); margin-top: 4rem; padding-top: 2rem; }
.ma-dd__result-heading { align-items: start; display: flex; gap: 1.5rem; justify-content: space-between; margin-top: 0.75rem; }
.ma-dd__result-heading h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.ma-dd__result-total { color: var(--site-brand-blue); flex: 0 0 auto; font-size: 2.7rem; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.ma-dd__result-total span { color: var(--site-brand-graphite); font-size: 1rem; font-weight: 500; }
.ma-dd__result-description { margin-top: 1.25rem !important; }
.ma-dd__drag { background: var(--site-brand-surface); border-left: 3px solid var(--site-brand-blue); margin-top: 1.5rem; padding: 1.25rem; }
.ma-dd__drag h3, .ma-dd__breakdown-heading { font-size: 0.96rem; font-weight: 700; }
.ma-dd__drag p { font-size: 0.92rem; margin-top: 0.5rem; }
.ma-dd__critical { border: 1px solid hsl(var(--diligence-danger)); border-left-width: 3px; color: hsl(var(--diligence-danger)); font-size: 0.88rem; margin-top: 1.25rem; padding: 1rem 1.25rem; }
.ma-dd__critical p { color: var(--site-brand-text); margin-top: 0.4rem; }
.ma-dd .ma-dd__breakdown-heading { margin-top: 2rem; }
.ma-dd__breakdown-row { border-bottom: 1px solid var(--site-brand-border); display: grid; gap: 1rem; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.8fr); padding: 1.1rem 0; }
.ma-dd__breakdown dt { font-size: 0.88rem; font-weight: 700; }
.ma-dd__breakdown dd { font-size: 0.84rem; }
.ma-dd__breakdown dd strong { color: var(--site-brand-green-cta); font-weight: 800; }
.ma-dd__breakdown [data-level="moderate"] dd strong { color: hsl(var(--diligence-warning)); }
.ma-dd__breakdown [data-level="high"] dd strong { color: hsl(var(--diligence-danger)); }
.ma-dd__breakdown dd p { color: var(--site-brand-graphite); margin-top: 0.35rem; }
.ma-dd .ma-dd__disclaimer { color: var(--site-brand-graphite); font-size: 0.78rem; margin-top: 1.5rem; }
.ma-dd .ma-dd__lead { background: var(--site-brand-surface); border: 0; border-top: 2px solid var(--site-brand-secondary); margin-top: 3rem; min-width: 0; padding: 2rem; }
.ma-dd__lead legend { float: left; font-size: 1.4rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.75rem; padding: 0; width: 100%; }
.ma-dd__lead > p:first-of-type { clear: both; font-size: 0.93rem; }
.ma-dd__lead-grid, .ma-dd__captured-result { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 1.5rem; }
.ma-dd__captured-result { border-bottom: 1px solid var(--site-brand-border); padding-bottom: 1.5rem; }
.ma-dd__field--wide { grid-column: 1 / -1; }
.ma-dd__lead label:not(.ma-dd__consent) { display: block; font-size: 0.79rem; font-weight: 700; line-height: 1.5; margin-bottom: 0.4rem; }
.ma-dd__lead :is(input:not([type="checkbox"]),textarea) { background: var(--site-brand-background); border: 1px solid var(--site-brand-border); border-radius: var(--site-brand-radius-sm, 0.25rem); color: var(--site-brand-text); display: block; font: 400 0.94rem/1.5 var(--site-brand-body); min-height: 3rem; padding: 0.7rem; width: 100%; }
.ma-dd__lead textarea { resize: vertical; }
.ma-dd__lead :is(input,textarea)[readonly] { background: transparent; border-color: transparent; font-size: 0.83rem; min-height: auto; padding: 0; }
.ma-dd__consent { align-items: start; display: flex; font-size: 0.8rem; font-weight: 400; gap: 0.7rem; margin-top: 1.5rem; }
.ma-dd__consent input { accent-color: var(--site-brand-blue); appearance: auto; flex: 0 0 auto; height: 1.1rem; margin: 0.2rem 0 0; width: 1.1rem; }
.ma-dd__lead-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.ma-dd .ma-dd__small { color: var(--site-brand-graphite); font-size: 0.75rem; margin-top: 1rem; }
.ma-dd__save-status:not(:empty) { color: var(--site-brand-blue); font-size: 0.85rem; font-weight: 700; margin-top: 1rem; }
.ma-dd__confirmation { background: var(--site-brand-green-surface); border-top: 3px solid var(--site-brand-green-cta); margin-top: 2rem; padding: 2rem; }
.ma-dd__confirmation h2 { font-size: 1.55rem; line-height: 1.3; }
.ma-dd__confirmation p { margin-top: 0.75rem; }
.ma-dd__confirmation a { margin-top: 1.25rem; }
.ma-dd__error, .ma-dd__notice { border: 1px solid hsl(var(--diligence-danger)); color: hsl(var(--diligence-danger)); margin-top: 1rem; padding: 1rem; }
.ma-dd__closing { background: var(--site-brand-surface); border-top: 1px solid var(--site-brand-border); padding-block: 3rem; }
.ma-dd__closing-grid { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; }
.ma-dd__closing h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.ma-dd__closing p { color: var(--site-brand-graphite); font-size: 0.91rem; margin-top: 0.75rem; }

@media (max-width: 1050px) {
  .ma-dd__container { width: calc(100% - 4rem); }
  .ma-dd__hero-grid { gap: 2.5rem; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.8fr); }
  .ma-dd__workspace-grid { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 800px) {
  .ma-dd__hero-grid, .ma-dd__workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .ma-dd__hero { padding-top: 3rem; }
  .ma-dd__hero h1 { font-size: clamp(2.1rem, 6vw, 3rem); max-width: 23ch; }
  .ma-dd__memo { padding-left: 1.5rem; }
  .ma-dd__memo h2 { max-width: 32ch; }
  .ma-dd__memo dl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
  .ma-dd__memo dl div { gap: 1rem; }
  .ma-dd__workspace { padding-block: 3rem; }
  .ma-dd__sidebar { position: static; }
  .ma-dd__rubric { gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-dd__closing-grid { gap: 1.75rem; grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ma-dd__container { width: calc(100% - 2.5rem); }
  .ma-dd__hero h1 { font-size: 2.15rem; }
  .ma-dd__hero-subhead { font-size: 1rem !important; }
  .ma-dd__hero-note { margin-top: 2rem !important; }
  .ma-dd__question legend { font-size: 1.05rem; gap: 0.65rem; }
  .ma-dd .ma-dd__option { gap: 0.65rem; grid-template-columns: 1.1rem minmax(0, 1fr); padding: 0.9rem; }
  .ma-dd__option-letter { display: none; }
  .ma-dd__option-copy { font-size: 0.91rem; }
  .ma-dd__option-points { grid-column: 2; padding-top: 0; text-align: left; }
  .ma-dd__button { font-size: 0.84rem; padding-inline: 1rem; width: 100%; }
  .ma-dd__result-heading { flex-direction: column; }
  .ma-dd__breakdown-row { gap: 0.4rem; grid-template-columns: 1fr; }
  .ma-dd .ma-dd__lead { margin-inline: -0.5rem; padding: 1.5rem 1rem; }
  .ma-dd__lead-grid, .ma-dd__captured-result { grid-template-columns: minmax(0, 1fr); }
  .ma-dd__lead :is(input:not([type="checkbox"]),textarea) { font-size: 1rem; }
  .ma-dd__rubric { grid-template-columns: minmax(0, 1fr); }
  .ma-dd__confirmation { padding: 1.5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-dd *, .ma-dd *::before, .ma-dd *::after { scroll-behavior: auto !important; transition: none !important; }
}
