.state-page.ma-state-page {
  --state-navy: #12304a;
  --state-teal: #0f766e;
  --state-teal-dark: #0b5e58;
  --state-blue: #eaf4f7;
  --state-cream: #fffaf0;
  --state-border: #cbdde2;
  --state-text: #21343f;
  --state-muted: #56707c;
  color: var(--state-text);
  font-size: 17px;
  line-height: 1.72;
}

.ma-state-page *,
.ma-state-page *::before,
.ma-state-page *::after { box-sizing: border-box; }

.ma-state-page .state-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 68px; }
.ma-state-page section[id] { scroll-margin-top: 96px; margin-top: 48px; }
.ma-state-page h1, .ma-state-page h2, .ma-state-page h3 { color: var(--state-navy); line-height: 1.2; letter-spacing: -.02em; }
.ma-state-page h1 { margin: 12px 0 18px; font-size: clamp(2.2rem, 5vw, 4rem); }
.ma-state-page h2 { margin: 0 0 18px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.ma-state-page h3 { margin: 0 0 10px; font-size: 1.22rem; }
.ma-state-page p { margin: 0 0 16px; }
.ma-state-page a { color: #0b6573; text-underline-offset: 3px; }
.ma-state-page a:hover { color: var(--state-navy); }

.ma-state-page .state-hero { display: grid; grid-template-columns: 1.14fr .86fr; gap: 34px; align-items: center; padding: 42px; border: 1px solid var(--state-border); border-radius: 28px; background: linear-gradient(135deg, #f4fbfb 0%, #edf6fa 60%, #fffaf0 100%); box-shadow: 0 20px 48px rgba(18,48,74,.1); }
.ma-state-page .state-eyebrow { display: inline-block; color: var(--state-teal-dark); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ma-state-page .state-lead { color: #324d59; font-size: 1.08rem; }
.ma-state-page .state-answer-box, .ma-state-page .state-summary-box, .ma-state-page .state-trust-box, .ma-state-page .state-warning-box, .ma-state-page .state-checklist-box { padding: 22px 24px; border-radius: 18px; margin: 22px 0; }
.ma-state-page .state-answer-box { border-left: 5px solid var(--state-teal); background: #fff; box-shadow: 0 8px 24px rgba(18,48,74,.08); }
.ma-state-page .state-answer-box p:last-child, .ma-state-page .state-summary-box p:last-child, .ma-state-page .state-warning-box p:last-child { margin-bottom: 0; }
.ma-state-page .state-summary-box { border: 1px solid #9fd5cc; background: #edf9f6; }
.ma-state-page .state-trust-box { border: 1px solid #c8d9e6; background: #f2f7fb; }
.ma-state-page .state-warning-box { border: 1px solid #e9c682; background: var(--state-cream); }
.ma-state-page .state-checklist-box { border: 1px solid var(--state-border); background: #f8fbfc; }

.ma-state-page .state-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ma-state-page .state-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 2px solid var(--state-teal); border-radius: 999px; background: var(--state-teal); color: #fff; font-weight: 800; text-decoration: none; }
.ma-state-page .state-btn:hover { background: var(--state-teal-dark); color: #fff; }
.ma-state-page .state-btn-light { background: #fff; color: var(--state-teal-dark); }
.ma-state-page .state-btn-light:hover { background: #e8f7f4; color: var(--state-navy); }

.ma-state-page .state-image-card { margin: 0; overflow: hidden; border: 1px solid var(--state-border); border-radius: 20px; background: #fff; box-shadow: 0 14px 32px rgba(18,48,74,.12); }
.ma-state-page .state-image-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.ma-state-page .state-image-card figcaption { padding: 12px 15px; color: var(--state-muted); font-size: .88rem; line-height: 1.45; }
.ma-state-page .state-inline-image { float: right; width: min(46%, 520px); margin: 0 0 24px 30px; }

.ma-state-page .state-toc { margin: 34px 0 0; padding: 24px; border: 1px solid var(--state-border); border-radius: 20px; background: #fff; }
.ma-state-page .state-toc > strong { display: block; margin-bottom: 10px; color: var(--state-navy); font-size: 1.2rem; }
.ma-state-page .state-toc ul { columns: 3 230px; gap: 28px; margin: 0; padding-left: 20px; }
.ma-state-page .state-toc li { break-inside: avoid; margin: 5px 0; }

.ma-state-page .state-definition-grid, .ma-state-page .state-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.ma-state-page .state-definition, .ma-state-page .state-card { padding: 22px; border: 1px solid var(--state-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(18,48,74,.06); }
.ma-state-page .state-definition strong { display: block; margin-bottom: 8px; color: var(--state-teal-dark); font-size: 1.16rem; }
.ma-state-page .state-definition p:last-child, .ma-state-page .state-card p:last-child { margin-bottom: 0; }
.ma-state-page .state-card-grid.two { grid-template-columns: repeat(2, 1fr); }

.ma-state-page .state-table-wrap { clear: both; overflow-x: auto; margin: 24px 0; border: 1px solid var(--state-border); border-radius: 16px; }
.ma-state-page .state-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.ma-state-page .state-table th, .ma-state-page .state-table td { padding: 14px 16px; border-bottom: 1px solid #dce8eb; text-align: left; vertical-align: top; }
.ma-state-page .state-table th { background: var(--state-navy); color: #fff; font-size: .94rem; }
.ma-state-page .state-table tbody tr:nth-child(even) { background: #f6fafb; }
.ma-state-page .state-table tr:last-child td { border-bottom: 0; }

.ma-state-page .state-step-list { counter-reset: steps; list-style: none; margin: 24px 0; padding: 0; }
.ma-state-page .state-step-list li { position: relative; min-height: 54px; margin: 0 0 16px; padding: 15px 18px 15px 66px; border: 1px solid var(--state-border); border-radius: 15px; background: #fff; }
.ma-state-page .state-step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 13px; left: 16px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--state-teal); color: #fff; font-weight: 900; }
.ma-state-page .state-checklist { margin: 14px 0; padding: 0; list-style: none; }
.ma-state-page .state-checklist li { position: relative; margin: 9px 0; padding-left: 30px; }
.ma-state-page .state-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--state-teal); font-weight: 900; }

.ma-state-page .state-faq details { margin: 12px 0; border: 1px solid var(--state-border); border-radius: 14px; background: #fff; }
.ma-state-page .state-faq summary { cursor: pointer; padding: 17px 20px; color: var(--state-navy); font-weight: 800; }
.ma-state-page .state-faq details p { padding: 0 20px 18px; margin: 0; }
.ma-state-page .state-resources { clear: both; padding: 28px; border-radius: 20px; background: #f2f7fb; }
.ma-state-page .state-resources li { margin: 10px 0; }
.ma-state-page .state-source-note { padding: 15px 18px; border-left: 4px solid var(--state-teal); background: #fff; }

@media (max-width: 900px) {
  .ma-state-page .state-hero { grid-template-columns: 1fr; padding: 28px; }
  .ma-state-page .state-definition-grid, .ma-state-page .state-card-grid { grid-template-columns: 1fr 1fr; }
  .ma-state-page .state-inline-image { float: none; width: 100%; margin: 0 0 24px; }
}

@media (max-width: 620px) {
  .state-page.ma-state-page { font-size: 16px; }
  .ma-state-page .state-wrap { width: min(100% - 20px, 1160px); padding-top: 18px; }
  .ma-state-page .state-hero { padding: 22px 18px; border-radius: 20px; }
  .ma-state-page .state-definition-grid, .ma-state-page .state-card-grid, .ma-state-page .state-card-grid.two { grid-template-columns: 1fr; }
  .ma-state-page .state-cta-row, .ma-state-page .state-btn { width: 100%; }
  .ma-state-page .state-answer-box, .ma-state-page .state-summary-box, .ma-state-page .state-trust-box, .ma-state-page .state-warning-box, .ma-state-page .state-checklist-box, .ma-state-page .state-resources { padding: 18px; }
}
