/* claude — /representation ("Non-Attorney Representation: Process & Authorizations").
   Components that the representation visual system had no equivalent for: the sticky
   contents index, the statistic band with arithmetic backing rows, the agency data table,
   the do/don't duo, and the two-path resolution fork.

   Everything here is expressed in the --mk-* / --font-* tokens from marketing-core-claude.css
   so this page reads as a sibling of the 22 rep detail pages. Loaded ONLY on /representation
   (ThurgoodController@representation) so the detail pages don't inherit it. */

/* ============================================================
   SHELL — sticky contents index + content column
   ============================================================ */
.mkrw-page { background: var(--mk-bg); }

/* Horizontal gutter — matches the master top nav (.mh-bar: 56px desktop / 16px <1024px)
   so the hero, body copy, and disclaimer all line up with the logo. */
.mkrw-page { --mkrw-gutter: 56px; }

/* masthead — single-column variant of .mkrd-hero-inner (which is a 2-col grid) */
.mkrw-hero-inner { padding: 84px var(--mkrw-gutter); max-width: 1000px; }
.mkrw-hero-inner .mkrd-intro { margin-bottom: 0; max-width: 62ch; }

.mkrw-shell { padding: 0 var(--mkrw-gutter); }
.mkrw-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

/* ---------- contents index ---------- */
/* padding-bottom sets where the sticky index stops travelling, keeping its last item clear
   of the CTA band at the foot of the page rather than butting up against it. */
.mkrw-index { position: sticky; top: 24px; padding-top: 72px; padding-bottom: 64px; }
.mkrw-index-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mk-text-mute); margin-bottom: 14px; padding-left: 30px;
}
.mkrw-index ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: mkrw-idx;
}
.mkrw-index li { counter-increment: mkrw-idx; }
.mkrw-index a {
  display: block; position: relative;
  padding: 7px 0 7px 30px;
  border-left: 1px solid var(--mk-line);
  font-size: 13.5px; line-height: 1.35; color: var(--mk-text-mute);
  text-decoration: none;
  transition: color 0.14s, border-color 0.14s;
}
.mkrw-index a::before {
  content: counter(mkrw-idx, decimal-leading-zero);
  position: absolute; left: 10px; top: 8px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  color: var(--mk-line-strong);
}
.mkrw-index a:hover,
.mkrw-index a:focus-visible { color: var(--mk-teal-3); border-left-color: var(--mk-teal-3); }
.mkrw-index a:focus-visible { outline: 2px solid var(--mk-teal-3); outline-offset: 3px; }
.mkrw-index a.is-active { color: var(--mk-teal-3); border-left-color: var(--mk-teal-3); font-weight: 600; }
.mkrw-index a.is-active::before { color: var(--mk-orange); }

/* ---------- sections ---------- */
.mkrw-main { padding: 72px 0 0; min-width: 0; }
.mkrw-sec { padding: 0 0 64px; scroll-margin-top: 24px; }
.mkrw-sec + .mkrw-sec { border-top: 1px solid var(--mk-line); padding-top: 60px; }
.mkrw-sec .mkrd-sec-head { margin-bottom: 0; }

/* keeps a hyphenated phrase from breaking across lines (e.g. "non-attorney") */
.mkrw-nb { white-space: nowrap; }

/* running prose */
.mkrw-body {
  max-width: 68ch; margin-top: 26px;
  display: flex; flex-direction: column; gap: 15px;
}
.mkrw-body p { margin: 0; font-size: 16px; line-height: 1.68; color: var(--mk-text-soft); text-wrap: pretty; }
.mkrw-body a { color: var(--mk-teal-3); font-weight: 600; }

/* ---------- bullet list ---------- */
.mkrw-list {
  list-style: none; margin: 0; padding: 0; max-width: 68ch;
  display: flex; flex-direction: column; gap: 11px;
}
.mkrw-list li {
  position: relative; padding-left: 21px;
  font-size: 15.5px; line-height: 1.62; color: var(--mk-text-soft); text-wrap: pretty;
}
.mkrw-list li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 2px; border-radius: 1px; background: var(--mk-teal-3);
}
.mkrw-list li b,
.mkrw-list li strong { color: var(--mk-text); font-weight: 700; }
.mkrw-list--spaced { margin-top: 28px; }

/* ============================================================
   STATUTE CITATION PILLS
   ============================================================ */
.mkrw-cites { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.mkrw-cite {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--mk-teal-3); background: var(--mk-inset);
  border: 1px solid var(--mk-line);
  padding: 5px 11px; border-radius: 999px;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
a.mkrw-cite:hover,
a.mkrw-cite:focus-visible { background: var(--mk-teal-3); border-color: var(--mk-teal-3); color: #fff; }
.mkrw-cite--fee { color: var(--mk-orange-d); background: rgba(243, 114, 34, 0.09); border-color: rgba(243, 114, 34, 0.22); }
a.mkrw-cite--fee:hover,
a.mkrw-cite--fee:focus-visible { background: var(--mk-orange-d); border-color: var(--mk-orange-d); color: #fff; }

/* small mono source line under a value */
.mkrw-src {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.55; letter-spacing: 0.01em;
  color: var(--mk-text-mute); white-space: normal; font-weight: 400;
}
.mkrw-src a { color: var(--mk-text-mute); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 0.5px; }
.mkrw-src a:hover { color: var(--mk-teal-3); }

/* ============================================================
   STATISTIC BAND — with arithmetic backing rows
   ============================================================ */
.mkrw-stats {
  margin-top: 34px;
  display: grid; grid-template-columns: 1.45fr 1fr 1fr;
  background: var(--mk-line);
  gap: 1px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  overflow: hidden;
}
.mkrw-stat { background: var(--mk-card); padding: 24px 22px; }
.mkrw-stat-num {
  font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1;
  letter-spacing: -0.025em; color: var(--mk-teal-3); font-variant-numeric: tabular-nums;
}
.mkrw-stat-lab { margin-top: 11px; font-size: 14.5px; line-height: 1.5; color: var(--mk-text-soft); }

/* the ÷ / = arithmetic breakdown under the first stat */
.mkrw-backing {
  margin-top: 18px; padding-top: 15px;
  border-top: 1px dashed var(--mk-line-strong);
  display: flex; flex-direction: column; gap: 10px;
}
.mkrw-backing-row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px;
  font-size: 12.5px; line-height: 1.45; color: var(--mk-text-mute);
}
.mkrw-backing-n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--mk-text-soft); font-variant-numeric: tabular-nums; text-align: right;
}
.mkrw-backing-row em { font-style: normal; color: var(--mk-line-strong); }
.mkrw-backing-row a { color: var(--mk-text-mute); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 0.5px; }
.mkrw-backing-row a:hover { color: var(--mk-teal-3); }
.mkrw-backing-row--total { padding-top: 9px; border-top: 1px solid var(--mk-line); }
.mkrw-backing-row--total .mkrw-backing-n { color: var(--mk-teal-3); font-weight: 700; }
.mkrw-backing-row--total span:last-child { color: var(--mk-text-soft); }

/* ============================================================
   DATA TABLE
   ============================================================ */
.mkrw-table-scroll {
  margin-top: 26px; overflow-x: auto;
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  background: var(--mk-card);
}
.mkrw-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.mkrw-table th,
.mkrw-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--mk-line); vertical-align: top; }
.mkrw-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mk-text-mute); background: var(--mk-inset);
}
.mkrw-table tr:last-child td { border-bottom: none; }
.mkrw-table td:first-child { color: var(--mk-text); font-weight: 700; }
.mkrw-table td { color: var(--mk-text-soft); }
.mkrw-num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 14px; color: var(--mk-text); }

/* ============================================================
   AUTHORITY CARDS
   ============================================================ */
.mkrw-cards {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--mk-line);
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius); overflow: hidden;
}
.mkrw-card { background: var(--mk-card); padding: 26px 24px; }
.mkrw-card--wide { grid-column: 1 / -1; }
.mkrw-card-h {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.28;
  color: var(--mk-text); margin: 0 0 9px; text-wrap: balance;
}
.mkrw-card p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--mk-text-soft); text-wrap: pretty; }
.mkrw-card .mkrw-list { margin-top: 14px; }
.mkrw-card .mkrw-cites { margin-top: 14px; }

/* pull quote — constrains the reused .mkr-cite (normally a 3-col grid child) */
.mkrw-quote { margin-top: 30px; max-width: 68ch; }
.mkrw-quote .mkr-cite-q { font-size: 18px; margin-bottom: 16px; }

/* state links */
.mkrw-states { margin-top: 12px; font-size: 14px; line-height: 2; color: var(--mk-text-mute); }
.mkrw-states a {
  color: var(--mk-teal-3); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent;
}
.mkrw-states a:hover,
.mkrw-states a:focus-visible { border-bottom-color: currentColor; }

/* ============================================================
   STAGE LIST — single-column override of .mkrd-steps, list-capable
   ============================================================ */
.mkrw-stages {
  margin-top: 30px;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  background: var(--mk-card); overflow: hidden;
}
.mkrw-stages .mkrd-step { padding: 24px 24px; border-top: 1px solid var(--mk-line); }
.mkrw-stages .mkrd-step:first-child { border-top: none; }
.mkrw-stages .mkrd-step-n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: lowercase; color: var(--mk-teal-3); min-width: 22px;
}
.mkrw-stage-body { min-width: 0; }
.mkrw-stages .mkrd-step-d { margin-bottom: 14px; max-width: 66ch; }
.mkrw-stages .mkrd-step-d:last-child { margin-bottom: 0; }

/* ============================================================
   DUO — what Thurgood does / does not do
   ============================================================ */
.mkrw-duo {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.mkrw-duo-col {
  background: var(--mk-card); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius); padding: 22px;
}
.mkrw-duo-col { border-top: 3px solid var(--mk-teal-3); }
.mkrw-duo-col--no { border-top-color: var(--mk-orange); }
.mkrw-duo-col--no .mkrw-list li::before { background: var(--mk-orange); }

.mkrw-sub-h {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mk-teal-3); margin-bottom: 13px;
}
.mkrw-duo-col--no .mkrw-sub-h { color: var(--mk-orange-d); }

/* nested sub-block (e.g. EEOC litigation outcomes) */
.mkrw-sub { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--mk-line-strong); }
.mkrw-sub p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mk-text-soft); }
.mkrw-sub p b { color: var(--mk-text); font-weight: 700; }

/* ============================================================
   FORK — the two resolution paths
   ============================================================ */
.mkrw-fork {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  align-items: start;
}
.mkrw-path {
  background: var(--mk-card); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.mkrw-path-top { padding: 18px 22px; background: var(--mk-inset); border-bottom: 1px solid var(--mk-line); }
.mkrw-path--cause .mkrw-path-top { box-shadow: inset 3px 0 0 var(--mk-orange); }
.mkrw-path--nocause .mkrw-path-top { box-shadow: inset 3px 0 0 var(--mk-teal-3); }
.mkrw-path-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mk-text-mute);
}
.mkrw-path--cause .mkrw-path-tag { color: var(--mk-orange-d); }
.mkrw-path--nocause .mkrw-path-tag { color: var(--mk-teal-3); }
.mkrw-path-h {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.22;
  color: var(--mk-text); margin: 8px 0 0;
}
.mkrw-path-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; }
.mkrw-path-body > p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--mk-text-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .mkrw-layout { grid-template-columns: 1fr; gap: 0; }
  .mkrw-index { display: none; }
  .mkrw-main { padding-top: 52px; }
  .mkrw-cards { grid-template-columns: 1fr; }
  .mkrw-fork { grid-template-columns: 1fr; }
  .mkrw-duo { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .mkrw-stats { grid-template-columns: 1fr; }
}
/* gutter drops to 16px at the same breakpoint the top nav switches to its mobile bar */
@media (max-width: 1023px) {
  .mkrw-page { --mkrw-gutter: 16px; }
}
@media (max-width: 760px) {
  .mkrw-stat-num { font-size: 34px; }
  .mkrw-stages .mkrd-step { padding: 20px 18px; }
}
@media (max-width: 620px) {
  .mkrw-stages .mkrd-step { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mkrw-index a { transition: none; }
}
