/* ============================================================
 * Native-language pages /zh/ /hi/ /pa/ /vi/ /ne/ /ar/ (CD_Multilang, 2 Oct 2026)
 * and their guides (/zh/unpaid-wages/ etc.). Loaded on those pages only. Plain editorial layout on the site's light
 * theme: white, slate text, purple buttons. Mobile first (375px), 18px type,
 * inputs 18px so iOS does not zoom, tap targets 52px+. Logical properties
 * throughout so Arabic (dir="rtl") mirrors without extra rules.
 * ============================================================ */

.cd-ml {
  --ml-purple: #7c3aed;
  --ml-purple-d: #6d28d9;
  --ml-ink: #0f172a;
  --ml-muted: #475569;
  --ml-line: #e2e8f0;
  --ml-line-2: #cbd5e1;
  --ml-soft: #f8fafc;
  --ml-tint: #f5f3ff;
  background: #fff;
  color: var(--ml-ink);
  font-size: 18px;
  line-height: 1.65;
  text-align: start;
}
.cd-ml *,
.cd-ml *::before,
.cd-ml *::after { box-sizing: border-box; }
/* The script shows and hides parts with the hidden attribute; never let a display rule undo it. */
.cd-ml [hidden] { display: none !important; }

/* Script fonts: only the one this page loads (Vietnamese keeps Inter). */
body.cd-ml-zh .cd-ml { font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif; }
body.cd-ml-hi .cd-ml,
body.cd-ml-ne .cd-ml { font-family: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; line-height: 1.75; }
body.cd-ml-pa .cd-ml { font-family: 'Noto Sans Gurmukhi', 'Inter', system-ui, sans-serif; line-height: 1.75; }
body.cd-ml-ar .cd-ml { font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; line-height: 1.8; }
body.cd-ml-vi .cd-ml { font-family: 'Inter', system-ui, sans-serif; }
.cd-ml h1, .cd-ml h2, .cd-ml h3,
.cd-ml button, .cd-ml input, .cd-ml textarea, .cd-ml summary { font-family: inherit; }

/* Arabic: the page is RTL, the theme's English header, menu and footer stay LTR. */
body.cd-ml-rtl .cd-header,
body.cd-ml-rtl .cd-drawer,
body.cd-ml-rtl .cd-footer { direction: ltr; }

.cd-ml-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ── Language switcher ─────────────────────────────────────── */
.cd-ml-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-block: 16px 0;
  font-size: 16px;
}
.cd-ml-langs a { color: var(--ml-purple); text-decoration: underline; text-underline-offset: 3px; }
.cd-ml-langs a:hover { color: var(--ml-purple-d); }
.cd-ml-langs span[aria-current] { color: var(--ml-ink); font-weight: 700; }
.cd-ml-langs a, .cd-ml-langs span { padding-block: 6px; }

/* ── Hero ──────────────────────────────────────────────────── */
.cd-ml-hero { padding-block: 28px 36px; }
.cd-ml h1 {
  color: var(--ml-ink);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.cd-ml-lead { font-size: 20px; color: var(--ml-ink); margin: 0 0 14px; }
.cd-ml-price { font-size: 18px; color: var(--ml-muted); margin: 0 0 24px; }

/* ── Sections ──────────────────────────────────────────────── */
.cd-ml-section { padding-block: 36px; border-top: 1px solid var(--ml-line); }
.cd-ml-section--soft { background: var(--ml-soft); }
.cd-ml h2 {
  color: var(--ml-ink);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 16px;
}
.cd-ml h3 { color: var(--ml-ink); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.cd-ml p { margin: 0 0 12px; }
.cd-ml-muted { color: var(--ml-muted); }

.cd-ml-steps {
  list-style: none;
  counter-reset: mlstep;
  margin: 0;
  padding: 0;
}
.cd-ml-steps li {
  counter-increment: mlstep;
  position: relative;
  padding-inline-start: 48px;
  margin-block-end: 18px;
  min-height: 36px;
}
.cd-ml-steps li::before {
  content: counter(mlstep);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ml-purple);
  border-radius: 50%;
  color: var(--ml-purple);
  font-weight: 700;
  font-size: 17px;
  line-height: 30px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
}

.cd-ml-trust { margin: 0; padding-inline-start: 22px; }
.cd-ml-trust li { margin-block-end: 12px; }

/* ── Buttons ───────────────────────────────────────────────── */
.cd-ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border: 2px solid var(--ml-purple);
  border-radius: 10px;
  background: var(--ml-purple);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.cd-ml-btn:hover, .cd-ml-btn:focus-visible { background: var(--ml-purple-d); border-color: var(--ml-purple-d); color: #fff; }
.cd-ml-btn:disabled { opacity: 0.6; cursor: wait; }
.cd-ml-btn--quiet { background: #fff; color: var(--ml-purple); }
.cd-ml-btn--quiet:hover, .cd-ml-btn--quiet:focus-visible { background: var(--ml-tint); color: var(--ml-purple-d); }
.cd-ml-btn:focus-visible,
.cd-ml-link:focus-visible,
.cd-ml-langs a:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.cd-ml-link {
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 48px;
  color: var(--ml-purple);
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── Form ──────────────────────────────────────────────────── */
/* Room for the theme's sticky header when a step scrolls the card into view. */
#cd-ml-start, .cd-ml-card { scroll-margin-top: 88px; }
.cd-ml-card {
  background: #fff;
  border: 1px solid var(--ml-line);
  border-radius: 12px;
  padding: 20px 16px;
  margin-block-start: 16px;
}
.cd-ml-progress { font-size: 15px; color: var(--ml-muted); margin: 0 0 10px; }
.cd-ml fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cd-ml-q {
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ml-ink);
  margin: 0 0 6px;
  padding: 0;
}
.cd-ml-q--sub { font-size: 18px; margin-block-start: 18px; }
.cd-ml-hint { font-size: 16px; color: var(--ml-muted); margin: 0 0 10px; }
.cd-ml textarea,
.cd-ml input[type="text"],
.cd-ml input[type="email"],
.cd-ml input[type="tel"] {
  display: block;
  width: 100%;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ml-ink);
  background: #fff;
  border: 1px solid var(--ml-line-2);
  border-radius: 10px;
  padding: 14px;
  min-height: 54px;
  margin: 0;
  box-shadow: none;
}
.cd-ml textarea { min-height: 180px; resize: vertical; }
.cd-ml textarea:focus,
.cd-ml input:focus { outline: none; border-color: var(--ml-purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }

.cd-ml-choices { display: grid; gap: 10px; margin-block-start: 6px; }
.cd-ml-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--ml-line-2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.4;
}
.cd-ml-choice input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--ml-purple); }
.cd-ml-choice.is-on,
.cd-ml-choice:has(input:checked) { border-color: var(--ml-purple); background: var(--ml-tint); }
.cd-ml-code { color: var(--ml-muted); font-size: 15px; font-family: 'Inter', system-ui, sans-serif; }

.cd-ml-err { color: #b91c1c; font-size: 16px; font-weight: 600; margin: 10px 0 0; }
.cd-ml-small { font-size: 15px; color: var(--ml-muted); margin-block-start: 16px; }
.cd-ml-small a { color: var(--ml-purple); }

.cd-ml-nav {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-block-start: 20px;
}

/* Honeypot: never shown to people. */
.cd-ml-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Working ───────────────────────────────────────────────── */
.cd-ml-working { text-align: center; padding-block: 32px; }
.cd-ml-spinner {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  border: 4px solid var(--ml-line);
  border-block-start-color: var(--ml-purple);
  border-radius: 50%;
  animation: cd-ml-spin 0.9s linear infinite;
}
@keyframes cd-ml-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cd-ml-spinner { animation: none; } }

/* ── Result ────────────────────────────────────────────────── */
.cd-ml-result:focus { outline: none; }
.cd-ml-doc { color: var(--ml-muted); }
.cd-ml-doc strong { color: var(--ml-ink); }
.cd-ml-summary {
  font-size: 19px;
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  background: var(--ml-soft);
  padding: 16px;
  margin-block-end: 16px;
}
.cd-ml-summary p:last-child { margin-block-end: 0; }
.cd-ml-missing {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-block-end: 16px;
}
.cd-ml-missing p { margin: 0; }
.cd-ml-price-row { font-size: 20px; margin-block: 8px 14px; }
.cd-ml-note { font-size: 16px; color: var(--ml-muted); margin-block: 12px 0; }
.cd-ml-payerr { margin-block-start: 16px; }
.cd-ml-payerr p { color: #b91c1c; font-weight: 600; }

/* ── FAQ ───────────────────────────────────────────────────── */
.cd-ml-faq details { border-bottom: 1px solid var(--ml-line); }
.cd-ml-faq details:first-child { border-top: 1px solid var(--ml-line); }
.cd-ml-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 16px;
  min-height: 52px;
  list-style-position: inside;
}
.cd-ml-faq details p { margin: 0 0 16px; color: var(--ml-ink); }

/* ── Other languages, legal line ───────────────────────────── */
.cd-ml-langlist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.cd-ml-langlist a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ml-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 18px;
}
.cd-ml-legal { font-size: 15px; color: var(--ml-muted); }

/* ── Guides list (landing page and the end of each guide) ──── */
.cd-ml-guides { list-style: none; margin: 0 0 16px; padding: 0; }
.cd-ml-guides li { border-bottom: 1px solid var(--ml-line); }
.cd-ml-guides li:first-child { border-top: 1px solid var(--ml-line); }
.cd-ml-guides a {
  display: block;
  padding-block: 14px;
  color: var(--ml-purple);
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cd-ml-guides a:hover { color: var(--ml-purple-d); }

/* ── Guide pages (/<lang>/unpaid-wages/ etc.) ──────────────── */
.cd-ml-guide { overflow-wrap: break-word; }
.cd-ml-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-block: 10px 0;
  font-size: 15px;
  color: var(--ml-muted);
}
.cd-ml-crumbs a { color: var(--ml-purple); text-decoration: underline; text-underline-offset: 3px; padding-block: 6px; }
.cd-ml-crumbs span { padding-block: 6px; }
.cd-ml-hero--guide { padding-block: 20px 28px; }
.cd-ml-answer { font-size: 20px; line-height: 1.6; color: var(--ml-ink); margin: 0 0 14px; }
.cd-ml-prose ul, .cd-ml-prose ol { margin: 0 0 14px; padding-inline-start: 22px; }
.cd-ml-prose li { margin-block-end: 8px; }
.cd-ml-prose h3 { margin-block-start: 18px; }
.cd-ml-guide a:not(.cd-ml-btn) { color: var(--ml-purple); }
.cd-ml-qa h3 { font-size: 19px; line-height: 1.45; margin: 22px 0 6px; }
.cd-ml-qa h3:first-child { margin-block-start: 0; }
.cd-ml-qa p { margin: 0 0 6px; }
.cd-ml-sources { margin: 0 0 16px; padding-inline-start: 22px; font-size: 16px; }
.cd-ml-sources li { margin-block-end: 8px; }
.cd-ml-sources a { text-decoration: underline; text-underline-offset: 3px; }
.cd-ml-checked { font-size: 15px; color: var(--ml-muted); }
.cd-ml-cta .cd-ml-price { margin-block-end: 18px; }

/* Per-state tables: a plain table on wider screens; on phones each row is a
   block with the column name above each value, so nothing scrolls sideways. */
.cd-ml-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
  margin-block: 8px 20px;
}
.cd-ml-table th,
.cd-ml-table td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--ml-line);
}
.cd-ml-table thead th { background: var(--ml-soft); font-weight: 700; }
.cd-ml-table tbody th { font-weight: 700; }
@media (max-width: 767px) {
  .cd-ml-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cd-ml-table,
  .cd-ml-table tbody,
  .cd-ml-table tr,
  .cd-ml-table th,
  .cd-ml-table td { display: block; width: 100%; }
  .cd-ml-table tr {
    border: 1px solid var(--ml-line);
    border-radius: 10px;
    padding: 4px 14px 8px;
    margin-block-end: 12px;
  }
  .cd-ml-table th,
  .cd-ml-table td { border: 0; padding: 8px 0; }
  .cd-ml-table tbody th { font-size: 18px; border-bottom: 1px solid var(--ml-line); }
  .cd-ml-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ml-muted);
  }
}

/* ── Larger screens ────────────────────────────────────────── */
@media (min-width: 768px) {
  .cd-ml-hero { padding-block: 44px 52px; }
  .cd-ml h1 { font-size: 40px; }
  .cd-ml h2 { font-size: 28px; }
  .cd-ml-section { padding-block: 48px; }
  .cd-ml-card { padding: 28px; }
  .cd-ml-btn { width: auto; }
  .cd-ml-btn--wide { width: 100%; }
  .cd-ml-nav { flex-direction: row; justify-content: space-between; }
  .cd-ml-nav .cd-ml-next { margin-inline-start: auto; }
  .cd-ml-choices--grid { grid-template-columns: 1fr 1fr; }
  .cd-ml-langlist { grid-template-columns: repeat(4, auto); justify-content: start; }
}
