/* Tax bill with a perforated stub: the signature component */
.taxbill {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.taxbill__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.taxbill__label { color: var(--brand); font-weight: 600; }
.taxbill .tool { border: 0; border-radius: 0; }
.taxbill .field input,
.taxbill .field select { min-width: 96px; }
.split-bar {
  display: flex;
  height: 12px;
  margin: .25rem 1.25rem .75rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}
.split-bar__seller { background: var(--muted); width: 49.6%; transition: width .3s; }
.split-bar__buyer { background: var(--brand); width: 50.4%; transition: width .3s; }
.taxbill__stub {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  border-top: 2px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem 1.25rem;
  font-size: .875rem;
  color: var(--muted);
  position: relative;
}
.taxbill__stub::before,
.taxbill__stub::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
}
.taxbill__stub::before { left: -8px; }
.taxbill__stub::after { right: -8px; }
.taxbill__stub strong { display: block; color: var(--ink); }
.taxbill__stub a { color: var(--brand); }
@media (max-width: 860px) {
  .taxbill__stub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .taxbill__stub { grid-template-columns: 1fr; }
}

/* Record pages: left-aligned hero, aligned to the top of the glance card */
.hero:not(.hero--center),
.hero--split,
.record-hero {
  text-align: left;
  align-items: start;
}
.hero:not(.hero--center) > :first-child,
.hero--split > :first-child,
.record-hero > :first-child {
  text-align: left;
  align-self: start;
  justify-items: start;
}
.hero:not(.hero--center) .chips,
.hero:not(.hero--center) .actions,
.hero--split .chips,
.hero--split .actions,
.record-hero .chips,
.record-hero .actions {
  justify-content: flex-start;
}

/* Record pages: left-aligned section headings and room between sections */
.layout-sidebar h2,
.layout-sidebar h3,
.layout-sidebar .section__head,
.with-aside h2,
.with-aside .section__head,
.record-body h2,
.record-body .section__head,
.content h2,
.content .section__head {
  text-align: left;
}
.layout-sidebar section + section,
.layout-sidebar .section + .section,
.with-aside section + section,
.record-body section + section,
.content section + section {
  margin-top: 64px;
}