/* Billing dispute sample: the case's own pieces. Colors and fonts come only from site.css :root. */
.sec h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 1.8rem 0 0.5rem; max-width: var(--measure); }
.sec h3:first-of-type { margin-top: 0.4rem; }

.banner { max-width: var(--measure); margin: 0 0 1.4rem; padding: 0.8rem 1rem; border: 2px solid var(--ink); background: var(--card); box-shadow: 5px 5px 0 var(--flag); font-size: 0.98rem; line-height: 1.45; }

.facts { margin: 0; border-top: 2px solid var(--ink); max-width: 46rem; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flag-ink); padding-top: 0.25rem; }
.facts dd { margin: 0; }

.talk { max-width: var(--measure); border-left: 3px solid var(--flag); padding-left: 1.1rem; }
.talk p { margin: 0 0 0.8rem; }
.talk b { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-right: 0.3rem; }

.tick, .checks { margin: 0 0 1rem; padding-left: 1.1rem; max-width: var(--measure); }
.tick li, .checks li { margin-bottom: 0.5rem; }
.tick li::marker, .checks li::marker { color: var(--flag-ink); }
.cite { font-family: var(--mono); font-size: 0.82em; white-space: nowrap; }

.doc { max-width: 40rem; padding: 1.3rem 1.4rem 0.6rem; border: 1.5px solid var(--ink); background: var(--card); }
.doc p { margin: 0 0 0.9rem; }
.doc.mono p { font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; margin-bottom: 0.6rem; }
.doc + .fine { margin-top: 1.1rem; }

.tablewrap { overflow: auto; border: 1.5px solid var(--ink); background: var(--card); margin-top: 0.5rem; max-width: 46rem; }
.tablewrap table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.4; }
.tablewrap th, .tablewrap td { padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.tablewrap thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.tablewrap tbody th { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.tablewrap tbody tr:nth-child(even) { background: var(--paper); }
.tablewrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tcap { margin: 0; max-width: var(--measure); font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .doc { padding: 1rem 0.9rem 0.4rem; }
  /* the timeline stacks: date on top, then what happened and the rule */
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tablewrap tr { display: block; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
  .tablewrap th, .tablewrap td { display: block; padding: 0.1rem 0; border: 0; }
  .tablewrap td:last-child { color: var(--ink-2); font-size: 0.88rem; }
}
