:root {
  --ink: var(--navy);
  --muted: var(--text);
  --accent: var(--red);
  --pale: #fef2f2;
  --line: var(--border);
  --paper: var(--surface);
  --canvas: var(--background);
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.topbar {
  min-height: 88px;
  padding: 20px max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  background: var(--accent);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  letter-spacing: -3px;
  padding-right: 4px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.topbar nav a {
  text-decoration: none;
}
.topbar form {
  margin: 0;
}
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 48px 24px 64px;
  min-height: calc(100vh - 170px);
}
.intro {
  max-width: 800px;
  padding: 25px 0 45px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  font-weight: 650;
  margin: 0 0 24px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
  margin: 0 0 18px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}
.muted,
.helptext {
  font-size: 14px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 35px 0 65px;
}
.hero h1 {
  max-width: 650px;
}
.hero-panel {
  background: var(--pale);
  padding: 36px;
  border-radius: var(--radius);
}
.feature {
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 25px 0 10px;
  display: flex;
  gap: 25px;
}
.feature span {
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
}
.feature h2 {
  font-size: 22px;
}
.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 24px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--paper);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 255px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tool-card .eyebrow {
  font-size: 10px;
}
.tool-card p {
  color: var(--muted);
}
.card-link {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--accent);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
}
.steps strong {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--ink);
}
.button {
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: white;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.button.small {
  padding: 9px 14px;
}
.button.danger {
  background: #8b3434;
  border-color: #8b3434;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.actions form {
  margin: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 10px 0 35px;
}
.page-heading h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.page-heading p {
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading .eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-column .panel {
  margin-bottom: 24px;
}
.form-panel {
  max-width: 780px;
}
.auth {
  max-width: 580px;
  margin: 35px auto;
}
.auth h1 {
  font-size: 40px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 9px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bac9bf;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 46px;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--pale);
  border-color: var(--accent);
}
form p {
  margin-bottom: 22px;
}
form p .helptext {
  display: block;
  margin-top: 7px;
}
.helptext ul {
  padding-left: 20px;
  font-size: 13px;
}
.errorlist {
  color: #9b3131;
  font-size: 14px;
  padding: 12px 12px 12px 30px;
  background: #fff0ed;
  border-radius: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  font-weight: 400;
  margin: 20px 0;
}
.check input {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.notice {
  padding: 17px 20px;
  margin-bottom: 22px;
  background: var(--pale);
  border-radius: 10px;
  line-height: 1.6;
  border: 1px solid var(--line);
}
.notice.error {
  background: #fff0ed;
  color: #8f3630;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 230px;
}
.search input {
  min-width: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
td,
th {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
thead th {
  background: var(--canvas);
}
td:last-child {
  white-space: nowrap;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--pale);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  padding: 40px 15px;
  text-align: center;
}
.empty p {
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 24px 0;
}
.record-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 25px 0 30px;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.checklist-item {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.checklist-item:last-child {
  padding-bottom: 0;
}
.checklist-item form {
  margin-top: 20px;
}
.checklist-item textarea,
.checklist-item input {
  margin-bottom: 18px;
}
.review-form {
  max-width: 600px;
}
.reminder-box {
  background: var(--canvas);
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
}
.activity {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.activity span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}
.metrics > div {
  padding: 24px;
  background: var(--pale);
  border-radius: 12px;
}
.metrics span,
.metrics small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.metrics strong {
  font-size: 27px;
  display: block;
  letter-spacing: -0.03em;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.compact {
  max-width: 750px;
  padding: 0 0 25px;
}
.compact h1 {
  font-size: 46px;
}
.prose {
  max-width: 800px;
}
.prose h2 {
  margin-top: 35px;
}
.footer {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer span {
  margin-right: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .hero {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar nav {
    gap: 14px;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics strong {
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .shell {
    padding: 28px 18px 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 0 30px;
    gap: 25px;
  }
  .hero-panel,
  .panel {
    padding: 23px;
  }
  .tool-grid,
  .steps,
  .two-column,
  .metrics {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 220px;
    padding: 25px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .compact h1 {
    font-size: 36px;
  }
  .intro {
    padding-top: 15px;
  }
  .auth {
    margin: 10px auto;
  }
  .auth h1 {
    font-size: 34px;
  }
  .footer {
    padding: 24px 18px;
    gap: 15px;
  }
  .footer span {
    width: 100%;
  }
  .toolbar {
    gap: 15px;
  }
  .search {
    flex-basis: 100%;
  }
  .record-heading {
    gap: 12px;
  }
  .facts {
    gap: 20px;
  }
  .metrics {
    gap: 12px;
  }
  .metrics > div {
    padding: 20px;
  }
  .actions .button {
    max-width: 100%;
  }
  .reminder-box {
    padding: 18px;
  }
  td,
  th {
    padding: 15px 10px;
  }
  .pagination {
    gap: 15px;
    font-size: 13px;
  }
}

/* MMD's existing navy, white and red brand. Shared source theme loads first. */
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
}
h2,
h3 {
  font-weight: 750;
}
.topbar {
  background: var(--navy);
  border-bottom: 0;
  box-shadow: 0 4px 20px rgb(15 23 42 / 8%);
}
.topbar .brand {
  gap: 2px;
  color: white;
  line-height: 1;
  font-weight: 400;
}
.topbar .brand img {
  width: 96px;
  height: auto;
  display: block;
  margin-right: -5px;
  aspect-ratio: 461 / 223;
  object-fit: contain;
}
.topbar .brand span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.015em;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 24px;
}
.product-label {
  color: #cbd5e1;
  border-left: 1px solid #475569;
  padding-left: 24px;
  font-size: 13px;
  font-weight: 600;
}
.topbar nav a,
.topbar .text-button {
  color: white;
}
.topbar nav .button {
  background: #b91c1c;
  border-color: #b91c1c;
}
.button:hover {
  background: var(--red-hover);
}
.button.secondary {
  color: var(--navy);
  border-color: var(--navy);
}
.button.secondary:hover {
  background: #e2e8f0;
}
.hero-panel {
  background: var(--navy);
  color: #cbd5e1;
}
.hero-panel h2 {
  color: white;
}
.hero-panel .eyebrow,
.hero-panel .feature span {
  color: #ffb1a1;
}
.hero-panel .feature {
  border-color: #334155;
}
.tool-card {
  border-radius: 16px;
  box-shadow: 0 12px 36px rgb(15 23 42 / 4%);
}
.tool-card:hover {
  border-color: var(--red);
}
.tool-card .card-link {
  color: var(--navy);
}
.tool-card .card-link span {
  color: var(--red);
}
.facts dd,
.record-heading h2,
.metrics strong {
  color: var(--navy);
}
input:not([type="checkbox"]),
textarea,
select {
  border-color: #94a3b8;
  color: var(--navy);
}
.badge {
  color: var(--navy);
  background: #f1f5f9;
}
.notice.success {
  background: #dcfce7;
  color: #166534;
}
.notice.error {
  background: #fef2f2;
  color: #991b1b;
}
.footer {
  max-width: none;
  background: var(--navy);
  color: #cbd5e1;
  padding: 28px max(24px, calc((100vw - 1152px) / 2));
  border: 0;
}
.footer a {
  color: white;
}
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .brand-group {
    gap: 18px;
    flex-wrap: wrap;
  }
  .product-label {
    padding-left: 18px;
  }
  .topbar .brand img {
    width: 76px;
  }
  .topbar .brand span {
    font-size: 1.1rem;
  }
  .footer {
    padding: 24px 18px;
  }
}

.catalog-search {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-bottom: 30px;
}
.catalog-search > div:first-child {
  flex: 2;
}
.catalog-search > div {
  flex: 1;
}
.catalog-search .button {
  min-height: 46px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.guide-nav {
  position: sticky;
  top: 20px;
}
.guide-nav h2 {
  font-size: 18px;
}
.guide-nav a {
  display: block;
  margin: 14px 0;
  font-size: 14px;
  color: var(--navy);
}
.guide-article section {
  margin-bottom: 38px;
  scroll-margin-top: 25px;
}
.guide-article h2 {
  margin-bottom: 18px;
}
.guide-article li {
  margin-bottom: 14px;
  line-height: 1.75;
}
.guide-article figure {
  margin: 20px 0;
}
.guide-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.guide-article figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-nav {
    position: static;
  }
  .catalog-search {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-search > div {
    width: 100%;
  }
}
.analytics-choice{position:sticky;bottom:0;background:#0f172a;color:#fff;padding:20px max(24px,calc((100vw - 1100px)/2));border-top:2px solid #dc2626;z-index:10}.analytics-choice p{max-width:900px}.analytics-choice a{color:#fff}.analytics-choice .button{margin-right:12px}
