*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Iowan Old Style", Palatino, Charter, Helvetica, Seravek,
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f7f4ee;
  color: #1a1a1a;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

input,
button,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 2;
  padding: 6px 10px;
  background: #f7f4ee;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: #1a1a1a;
}

p {
  margin-block: 10px;
}

ul {
  padding-left: 1.2em;
}

li {
  margin-top: 6px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.site-nav {
  display: flex;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: #1a1a1a;
}

h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 img {
  width: 1.15em;
  height: 1.15em;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 10px 0 0;
  font-size: 1.05rem;
}

.dates b {
  font-weight: 600;
  margin-right: 0.35em;
}

.dates time {
  font-variant-numeric: tabular-nums;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 32px 0 0;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  margin: 22px 0;
}

.counts > li {
  list-style: none;
  background: #f7f4ee;
  padding: 12px 10px;
}

.counts b {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.counts span {
  display: block;
  margin-top: 4px;
}

.highlights ul {
  margin: 10px 0 0;
}

label {
  display: inline-block;
}

select {
  border: 1px solid #1a1a1a;
  background: #f7f4ee;
  padding: 2px 4px;
}

.table-wrap {
  overflow: auto;
  max-height: 18.5rem;
  margin: 10px 0 0;
  border: 1px solid #1a1a1a;
  padding: 10px 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: top;
}

th:first-child,
td:first-child {
  padding-left: 0;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

th {
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #f7f4ee;
}

tfoot td {
  position: sticky;
  bottom: 0;
  border-bottom: 0;
  padding-top: 10px;
  background: #f7f4ee;
}

section {
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  gap: 18px;
  margin: 32px 0 0;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

.tabs button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 6px;
  cursor: pointer;
  color: inherit;
  border-bottom: 1px solid transparent;
}

.tabs button[aria-selected="true"] {
  border-bottom-color: #1a1a1a;
}

.tabs button:focus-visible {
  outline-offset: 4px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  min-height: 1.6em;
}

.panel-head h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.filter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.more {
  margin-top: 48px;
}

.more h2 {
  margin-top: 0;
}

.more h3 {
  margin-top: 18px;
}

.more ul {
  margin-top: 8px;
}

.search {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
}

.search input {
  border: 1px solid #1a1a1a;
  background: #f7f4ee;
  padding: 2px 6px;
  min-width: 12rem;
}

#ledger-count {
  margin: 0 0 18px;
}

.company-card {
  margin: 0 0 28px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

.company-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
}

.alias {
  font-variant-numeric: tabular-nums;
  margin-right: 0.4em;
}

.company-card .meta {
  margin-top: 4px;
}

.related {
  margin-top: 12px;
}

.related h3 {
  margin: 0;
  font-size: 0.95rem;
}

.related ul {
  margin-top: 4px;
}

.related p {
  margin-top: 4px;
}

.shot {
  display: block;
  margin-top: 14px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #1a1a1a;
}

.question-block {
  margin-top: 8px;
}

.prompt {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #1a1a1a;
}

.prompt > summary {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.prompt[open] > summary {
  margin-bottom: 10px;
}

.question-list,
.prep-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.question-list li,
.prep-list li {
  margin-top: 10px;
}

.prompt pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .counts {
    grid-template-columns: repeat(3, 1fr);
  }

  .counts b {
    font-size: 1.25rem;
  }
}
