/* RemitBench - the denial code reference.
   Everything here sits on top of brand.css and adds only what a long
   reading page needs: the verdict box, the article column, the step list,
   and the two blocks at the foot of every page. No new colors. */

/* ------------------------------------------------------------ the header */
/* The code pages run a three item header: wordmark, "Denial codes", button.
   index.html sets this padding inline; here it lives in the stylesheet so the
   small screen rule below can still win. */

.site-head nav a.btn-primary { padding: 8px 14px; }

/* ------------------------------------------------------------ the column */

.doc { padding: 0 0 10px; }
.doc .wrap { max-width: 920px; }

/* One step larger than the marketing pages: these are long reads. */
.doc { font-size: 17px; }
.doc p, .doc li { font-size: 17px; }
.doc table.grid { font-size: 14.5px; }
.doc .note { font-size: 15px; }

.crumbs {
  font-size: 13px; color: var(--muted); padding: 18px 0 0; margin: 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--rule-2); padding: 0 6px; }

.doc h1 {
  font-size: 40px; letter-spacing: -.02em; margin: 14px 0 12px;
}
.doc .lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 26px;
}
.doc h2 {
  font-size: 27px; margin: 46px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p { margin: 0 0 16px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.doc li { margin: 0 0 8px; }
.doc code {
  font: 500 13.5px/1 var(--mono); background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: 3px; padding: 2px 5px;
  color: var(--ink); white-space: nowrap;
}
.doc .scroller { margin: 0 0 20px; }

/* ---------------------------------------------------------- the verdict */
/* The money answer, above everything else. Three rows, always the same
   three questions, so a reader who lands on a second code page already
   knows where to look. */

.verdict {
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 6px;
  border-left: 4px solid var(--accent); box-shadow: var(--shadow);
  padding: 4px 22px 6px; margin: 0 0 30px;
}
.verdict dl { margin: 0; }
.verdict dt {
  font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 18px 0 0;
}
.verdict dd {
  margin: 7px 0 18px; font-size: 17px; line-height: 1.55; color: var(--ink);
}
.verdict dd + dt { border-top: 1px solid var(--rule); }
.verdict dd:last-of-type { margin-bottom: 20px; }
.verdict b { font-weight: 600; }

/* The one-line answer to "who owes this". It is the most important string on
   the page, so it sits on its own line rather than running into the sentence. */
.who {
  display: block; width: max-content; max-width: 100%;
  font: 600 12px/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; padding: 7px 10px; border-radius: 3px;
  margin: 0 0 10px; white-space: nowrap;
}
.who-practice { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.who-patient  { background: var(--flag-soft);   border: 1px solid var(--flag-line);   color: var(--flag); }
.who-neither  { background: var(--surface-2);   border: 1px solid var(--rule-2);      color: var(--ink-2); }

/* ------------------------------------------------------- the group codes */
/* CO means the practice absorbs it. PR means the patient owes it. Pages
   that get this backwards make people bill patients for write-offs, so it
   gets its own block and the same shape on every page. */

.groups {
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-2);
  padding: 18px 20px 4px; margin: 0 0 22px;
}
.groups p.k { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.groups dl { margin: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 14px; }
.groups dt {
  font: 600 13px/1.5 var(--mono); color: var(--ink); padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.groups dd {
  margin: 0; padding: 9px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  border-top: 1px solid var(--rule);
}
.groups dt:first-of-type, .groups dl > dt:first-of-type + dd { border-top: 0; }

/* --------------------------------------------------------------- callout */
/* Reuses .note from brand.css for the ochre caution. This is the red one,
   for the two or three things on a page that cost real money. */

.stop {
  border: 1px solid #e3bcb5; background: var(--bad-soft); color: var(--bad);
  border-radius: 5px; padding: 14px 17px; margin: 0 0 20px;
  font-size: 15.5px; line-height: 1.55;
}
.stop b { font-weight: 600; }
.stop p { margin: 0 0 10px; color: var(--bad); }
.stop p:last-child { margin: 0; }
.doc .note { margin: 0 0 20px; }
.doc .note p { margin: 0 0 10px; color: var(--flag); }
.doc .note p:last-child { margin: 0; }

/* ----------------------------------------------------------- the branches */
/* What to do next. Numbered, because the order matters, and the branch
   point is named inside the step rather than left implied. */

ol.branch { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; }
ol.branch > li {
  counter-increment: step; position: relative; padding: 0 0 20px 44px; margin: 0;
  border-left: 1px solid var(--rule); margin-left: 13px;
}
ol.branch > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.branch > li::before {
  content: counter(step); position: absolute; left: -13px; top: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font: 600 12px/26px var(--mono); text-align: center;
}
ol.branch h3 { margin: 2px 0 6px; font-size: 18px; }
ol.branch p { margin: 0 0 10px; font-size: 16px; }
ol.branch p:last-child { margin: 0; }
ol.branch .then {
  display: block; border-left: 2px solid var(--accent-line); padding: 2px 0 2px 13px;
  margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
ol.branch .then b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- related */

.related { margin: 0 0 8px; padding: 0; list-style: none; }
.related li {
  border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 0; font-size: 15px;
}
.related li:last-child { border-bottom: 0; }
.related a { font-weight: 500; }
.related .why { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.related .plain { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- the hub */

.hub-list { margin: 0 0 10px; padding: 0; list-style: none; }
.hub-list li {
  border-top: 1px solid var(--rule); padding: 16px 0; margin: 0;
}
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list .code {
  font: 600 15px/1.4 var(--mono); letter-spacing: -.01em;
}
.hub-list .sum { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 5px; }
.hub-list .sum b { font-weight: 600; color: var(--ink); }

.soon { margin: 0; padding: 0; list-style: none; }
.soon li {
  border-top: 1px solid var(--rule); padding: 13px 0; margin: 0;
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px;
  font-size: 14.5px; color: var(--ink-2);
}
.soon li:last-child { border-bottom: 1px solid var(--rule); }
.soon .code { font: 600 13.5px/1.5 var(--mono); color: var(--muted); }

/* ---------------------------------------------------------- foot blocks */
/* One honest line about the tool, then one question. Nothing else. */

.foot-blocks { margin: 52px 0 0; }
.tool-line {
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
  padding: 20px 22px; margin: 0 0 18px;
}
.tool-line p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }

.ask {
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-2);
  padding: 20px 22px;
}
.ask label { display: block; font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.ask form { display: flex; gap: 10px; flex-wrap: wrap; }
.ask input {
  font: 400 15px/1 var(--sans); padding: 11px 13px; border: 1px solid var(--rule-2);
  border-radius: 4px; background: var(--surface); color: var(--ink);
  min-width: 0; flex: 1 1 260px;
}
.ask input::placeholder { color: var(--faint); }
.ask .fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- small */

@media (max-width: 700px) {
  /* The code pages carry a three item header, and at 375px the wordmark plus
     "Denial codes" plus the button sit a few pixels over the line and wrap.
     Buy those pixels back from the gutters rather than dropping a nav item.
     Applied to every .wrap so the logo still lines up with the text. */
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-head .wrap { gap: 10px; }
  .site-head nav { gap: 12px; }
  .site-head nav a.btn-primary { padding: 8px 11px; }

  .doc h1 { font-size: 30px; }
  .doc .lede { font-size: 16.5px; }
  .doc h2 { font-size: 23px; margin-top: 36px; }
  .verdict { padding: 2px 16px 4px; }
  .verdict dd { font-size: 15.5px; }
  .who { display: block; margin: 0 0 8px; width: max-content; }
  .groups { padding: 16px 16px 2px; }
  .groups dl { grid-template-columns: 58px minmax(0, 1fr); gap: 0 10px; }
  ol.branch > li { padding-left: 30px; }
  .soon li { grid-template-columns: minmax(0, 1fr); }
  .tool-line, .ask { padding: 17px 16px; }
}

/* The 17px body rule above would leak into the callouts through .doc p,
   so the callouts restate their sizes. */
.doc .stop p { font-size: 15.5px; }
.doc .note p { font-size: 15px; }
