/* ===========================================================================
   Debt collection process decoder.

   Design language: a sticky vertical "case progression" rail beside the
   content (distinct from the IRS decoder's paper-letter dossier), and a
   "Your rights at this stage" card leading every page. Each stage carries
   its own accent via --dacc set inline on the wrapper.
   =========================================================================== */

.dcx {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ec;
  --paper: #f8fafc;
  --dacc: #0ea5e9;
  --dacc-soft: color-mix(in srgb, var(--dacc) 9%, #fff);
  --dacc-ink: color-mix(in srgb, var(--dacc) 55%, #0f172a);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  padding: 1.6rem 0 3rem;
}
.dcx-wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

.dcx-crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 1.5rem; }
.dcx-crumbs a { color: var(--muted); text-decoration: none; }
.dcx-crumbs a:hover { color: var(--dacc-ink); }
.dcx-crumbs span[aria-hidden] { margin: 0 .45rem; }

/* --- hero ----------------------------------------------------------------- */
.dcx-hero { max-width: 780px; margin: 0 0 1.4rem; }
.dcx-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--dacc-ink); margin: 0 0 .55rem; }
.dcx-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .9rem; }
.dcx-answer { font-size: 1.05rem; line-height: 1.65; color: #334155; margin: 0 0 .9rem; }
.dcx-deadline { display: inline-block; font-size: .9rem; color: var(--ink); background: var(--dacc-soft); border: 1px solid color-mix(in srgb, var(--dacc) 25%, #fff); border-left: 5px solid var(--dacc); border-radius: 4px 10px 10px 4px; padding: .55rem .9rem; margin: 0; }
.dcx-deadline span { font-weight: 800; color: var(--dacc-ink); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; margin-right: .4rem; }

.dcx-disclaimer { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1.6rem; }
.dcx-disclaimer p { font-size: .78rem; color: #92400e; line-height: 1.5; margin: 0; }

/* --- two column layout: rail + main -------------------------------------- */
.dcx-cols { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
@media (min-width: 900px) { .dcx-cols { grid-template-columns: 240px 1fr; gap: 2.2rem; } }

.dcx-rail { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
@media (min-width: 900px) { .dcx-rail { position: sticky; top: 110px; } }
.dcx-rail-h { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.dcx-rail ol { list-style: none; margin: 0; padding: 0; }
.dcx-rail li { position: relative; padding: 0 0 1.05rem 1.7rem; }
.dcx-rail li::before { content: ""; position: absolute; left: 5px; top: 15px; bottom: -3px; width: 2px; background: #d8dde4; }
.dcx-rail li:last-child { padding-bottom: 0; }
.dcx-rail li:last-child::before { display: none; }
.dcx-rail li::after { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #c3cad4; }
.dcx-rail li.is-here::after { border-color: var(--dacc); background: var(--dacc); box-shadow: 0 0 0 4px var(--dacc-soft); }
.dcx-rail a { text-decoration: none; }
.dcx-rail-code { display: block; font-size: .82rem; font-weight: 800; color: var(--ink); }
.dcx-rail a .dcx-rail-code { color: var(--dacc-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--dacc) 40%, #fff); text-underline-offset: 3px; }
.dcx-rail li.is-here .dcx-rail-code { color: var(--dacc-ink); }
.dcx-rail-label { display: block; font-size: .72rem; color: var(--muted); line-height: 1.4; margin-top: .1rem; }

/* --- your rights card: the cluster's signature element -------------------- */
.dcx-rights { background: #0b1220; border-radius: 14px; padding: clamp(1.4rem, 3.5vw, 1.9rem) clamp(1.5rem, 4vw, 2rem); margin: 0 0 1.5rem; position: relative; overflow: hidden; }
.dcx-rights::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--dacc); }
.dcx-rights h2 { color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .9rem; }
.dcx-rights ul { list-style: none; margin: 0; padding: 0; }
.dcx-rights li { position: relative; padding: 0 0 .75rem 1.7rem; color: #cbd5e1; font-size: .95rem; line-height: 1.6; }
.dcx-rights li:last-child { padding-bottom: 0; }
.dcx-rights li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 10px; height: 10px; border-radius: 2px; background: var(--dacc); transform: rotate(45deg); }

/* --- content blocks -------------------------------------------------------- */
.db { margin: 0 0 1.5rem; }
.db h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 0 0 .85rem; }

.db-plain { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3.5vw, 1.9rem); }
.db-plain h2 { padding-left: .85rem; border-left: 4px solid var(--dacc); }
.db-plain p { font-size: .99rem; line-height: 1.7; color: #334155; margin: 0 0 1rem; }
.db-plain p:last-child { margin-bottom: 0; }

.db-panel { background: var(--dacc-soft); border: 1px solid color-mix(in srgb, var(--dacc) 22%, #fff); border-left: 6px solid var(--dacc); border-radius: 4px 14px 14px 4px; padding: clamp(1.3rem, 3.5vw, 1.8rem) clamp(1.4rem, 4vw, 2rem); }
.db-panel .db-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dacc-ink); margin: 0 0 .5rem; }
.db-panel p { color: #1e293b; font-size: .97rem; line-height: 1.65; margin: 0; }

.db-mythfact { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3.5vw, 1.9rem); }
.db-mf-row { display: grid; grid-template-columns: 1fr; gap: .4rem 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.db-mf-row:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 700px) { .db-mf-row { grid-template-columns: 1fr 1.15fr; gap: 0 1.8rem; align-items: start; } }
.db-mf-myth { color: var(--muted); font-size: .92rem; line-height: 1.55; position: relative; padding-left: 1.4rem; }
.db-mf-myth::before { content: "\201C"; position: absolute; left: 0; top: .12rem; font-size: 1.3rem; font-weight: 800; color: #cbd5e1; line-height: 1; }
.db-mf-fact { color: var(--ink); font-size: .96rem; line-height: 1.6; font-weight: 500; position: relative; padding-left: 1.4rem; }
.db-mf-fact::before { content: ""; position: absolute; left: 0; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--dacc); }

.db-checklist { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.3rem, 3.5vw, 1.9rem); }
.db-checklist ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.db-checklist li { counter-increment: step; position: relative; padding: 0 0 .95rem 2.9rem; }
.db-checklist li:last-child { padding-bottom: 0; }
.db-checklist li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--dacc); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.db-checklist li p { margin: .25rem 0 0; font-size: .95rem; color: #334155; line-height: 1.55; }

.db-statband { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; }
.db-stat { padding: 1.2rem 1.3rem; border-right: 1px solid var(--line); }
.db-stat:last-child { border-right: 0; }
.db-stat-v { font-size: 1.65rem; font-weight: 800; color: var(--dacc-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.db-stat-l { font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: .3rem; }
@media (max-width: 620px) { .db-statband { grid-auto-flow: row; grid-auto-columns: auto; } .db-stat { border-right: 0; border-bottom: 1px solid var(--line); } .db-stat:last-child { border-bottom: 0; } }

.db-ledger-wrap h2 { margin-bottom: .9rem; }
.db-ledger { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 520px; box-shadow: 0 1px 2px rgba(15,23,42,.04); background: #fff; }
.db-ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 1.1rem; border-bottom: 1px dashed var(--line); }
.db-ledger-row span:first-child { color: #334155; font-size: .92rem; }
.db-ledger-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); text-align: right; }
.db-ledger-total { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; background: var(--dacc-soft); }
.db-ledger-total span { font-weight: 800; color: var(--dacc-ink); }
.db-note { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: .7rem 0 0; max-width: 520px; }

.db-pointer { background: var(--paper); border: 1px dashed color-mix(in srgb, var(--dacc) 45%, #fff); border-radius: 14px; padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.3rem, 3.5vw, 1.7rem); }
.db-pointer .db-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dacc-ink); margin: 0 0 .45rem; }
.db-ptr-text { font-size: .95rem; color: #1e293b; line-height: 1.6; margin: 0 0 .65rem; max-width: 62ch; }
.db-ptr-link { display: inline-block; font-weight: 800; font-size: .93rem; color: var(--dacc-ink); text-decoration: none; border-bottom: 2px solid var(--dacc); padding-bottom: 2px; }
.db-ptr-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.db-faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3.5vw, 1.9rem); }
.db-faq details { border-bottom: 1px solid var(--line); }
.db-faq details:last-child { border-bottom: 0; }
.db-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--ink); font-size: .99rem; position: relative; }
.db-faq summary::-webkit-details-marker { display: none; }
.db-faq summary::after { content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.4rem; font-weight: 400; color: var(--dacc); }
.db-faq details[open] summary::after { content: "\2212"; }
.db-faq details p { margin: 0 0 1.1rem; color: #334155; line-height: 1.65; font-size: .95rem; }

.db-sources { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.db-sources p { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 0; }
.db-sources a { color: var(--dacc-ink); }

.dcx-cta { text-align: center; background: #0b1220; border-radius: 14px; padding: clamp(1.7rem, 4vw, 2.4rem) 1.5rem; }
.dcx-cta h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.dcx-cta p { color: #cbd5e1; font-size: .93rem; line-height: 1.6; margin: 0 auto .5rem; max-width: 56ch; }
.dcx-cta-btn { display: inline-block; margin: .7rem 0 .4rem; background: var(--dacc); color: #fff; font-weight: 800; font-size: .97rem; text-decoration: none; border-radius: 10px; padding: .75rem 1.5rem; }
.dcx-cta-btn:hover { filter: brightness(1.08); }
.dcx-cta-note { font-size: .73rem !important; color: #94a3b8 !important; }
.dcx-cta-note a { color: #7dd3fc; }

/* ===========================================================================
   Hub page: the full walk
   =========================================================================== */
.dhub-hero { max-width: 760px; }
.dhub-walk { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.dhub-walk > li { position: relative; padding: 0 0 1rem 2.2rem; }
.dhub-walk > li::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -6px; width: 2px; background: #d8dde4; }
.dhub-walk > li:last-child::before { display: none; }
.dhub-walk > li::after { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #0ea5e9; }
.dhub-walk > li.dhub-terminal::after { border-color: #cbd5e1; }
.dhub-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 1.1rem 1.3rem; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.dhub-card:hover { border-color: #0ea5e9; box-shadow: 0 10px 26px -18px rgba(2,132,199,.55); transform: translateX(3px); }
.dhub-card-plain { background: var(--paper); }
.dhub-card-code { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.dhub-card-label { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; margin: .15rem 0 .35rem; }
.dhub-card-go { font-size: .85rem; font-weight: 700; color: #0284c7; }

.dhub-notes { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1.5rem; }
.dhub-notes h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 1rem; }
.dhub-notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.dhub-notes-grid h3 { font-size: .98rem; font-weight: 800; color: var(--ink); margin: 0 0 .4rem; }
.dhub-notes-grid p { font-size: .89rem; color: #475569; line-height: 1.6; margin: 0; }
