:root {
  /* Honey Law Group brand (honeylawgroup.com): teal #6EBDC0, taupe #A69688, warm off-white.
     --blue is the action/link color: a deeper teal so text on white stays readable. */
  color-scheme: light;
  --paper: #fff;
  --ink: #212121;
  --muted: #6e665f;
  --line: #e2dcd5;
  --wash: #f8f7f6;
  --blue: #2c7a7e;
  --teal: #6ebdc0;
  --taupe: #a69688;
  --red: #a3392f;
  --green: #3b6b4e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 "Raleway",
    "Helvetica Neue",
    sans-serif;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 38px 40px;
}
body::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--taupe);
}
header {
  padding-top: 4px;
  margin-bottom: 40px;
}
.brand,
.eyebrow,
.edition,
footer {
  font:
    11px "IBM Plex Mono",
    monospace;
  letter-spacing: 0.08em;
}
.brand img {
  display: block;
  height: 30px;
  width: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  font:
    600 68px/1.2 "PT Serif",
    Georgia,
    serif;
  margin: 22px 0 8px;
  letter-spacing: -1px;
  font-weight: 400;
}
h1 span {
  color: var(--teal);
}
.edition {
  border: 1px solid var(--taupe);
  padding: 9px;
  color: var(--taupe);
}
p {
  margin: 10px 0;
}
.intro {
  font:
    24px "PT Serif",
    Georgia,
    serif;
}
header > p:last-child {
  color: var(--muted);
}
section {
  margin-bottom: 32px;
}
.section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding: 0 0 12px;
}
h2 {
  font:
    600 25px "PT Serif",
    Georgia,
    serif;
  margin: 0;
}
.number {
  font:
    13px "IBM Plex Mono",
    monospace;
  color: var(--blue);
  margin-right: 17px;
}
.panel {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
button,
.button {
  font:
    500 13px "Raleway",
    "Helvetica Neue",
    sans-serif;
  border: 1px solid var(--blue);
  padding: 10px 16px;
  background: var(--blue);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--blue);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
label.button:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.drop {
  display: block;
  border: 1px dashed var(--line);
  background: var(--wash);
  padding: 19px 20px;
  cursor: pointer;
}
.drop strong {
  font-weight: 600;
  display: block;
}
.drop span {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin: 3px 0 12px;
}
input {
  font:
    13px "IBM Plex Mono",
    monospace;
  color: var(--ink);
  max-width: 100%;
}
input:not([type="file"]):not([type="radio"]):not([type="checkbox"]) {
  border: 1px solid var(--line);
  padding: 9px;
  background: var(--paper);
  width: 100%;
  border-radius: 0;
}
input[type="file"] {
  font:
    12px "Raleway",
    "Helvetica Neue",
    sans-serif;
  width: 100%;
}
input::file-selector-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
  padding: 6px 10px;
  margin-right: 10px;
  cursor: pointer;
}
.field {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}
.field input {
  display: block;
  margin-top: 5px;
}
.small {
  max-width: 180px;
}
.help,
.privacy {
  font-size: 12px;
  color: var(--muted);
}
.privacy {
  margin: 14px 0 23px;
}
.run-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0 0;
  padding: 16px 0 0;
}
legend {
  padding: 0 10px 0 0;
  font-weight: 500;
}
fieldset label {
  margin-right: 22px;
}
.volume {
  display: grid;
  grid-template-columns:
    70px minmax(100px, 1fr) 65px 90px 90px minmax(100px, 1fr)
    32px;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  align-items: end;
}
.volume label {
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.filename {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.volume input {
  margin-top: 4px;
}
.warning {
  grid-column: 1/-1;
  color: var(--red);
  font-size: 12px;
}
.error {
  color: var(--red);
}
#downloads:not(:empty) {
  padding: 18px 0;
}
#notice:not(:empty) {
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  margin: 16px 0;
  background: var(--wash);
}
#tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
#tabs button {
  flex: 1;
  border: 0;
  border-bottom: 3px solid transparent;
  background: var(--wash);
  color: var(--muted);
  border-radius: 0;
  padding: 14px 8px;
}
#tabs button[aria-selected="true"] {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--paper);
}
.count {
  font-family: "IBM Plex Mono", monospace;
  margin-left: 7px;
}
.problems {
  color: var(--red);
  margin-left: 6px;
}
.empty {
  text-align: center;
  padding: 40px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
h3 {
  font:
    22px "PT Serif",
    Georgia,
    serif;
}
.result-row {
  display: grid;
  grid-template-columns: 70px minmax(120px, 1fr) 130px;
  gap: 16px;
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.page,
.cite,
.stamp {
  font-family: "IBM Plex Mono", monospace;
}
.page {
  font-size: 12px;
  color: var(--muted);
}
.cite {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.stamp {
  font-size: 10px;
  border: 1px solid currentColor;
  padding: 3px 6px;
  justify-self: end;
  letter-spacing: 0.06em;
  color: var(--green);
}
.stamp.problem {
  color: var(--red);
}
.stamp.unchecked {
  color: var(--muted);
}
a {
  color: var(--blue);
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}
td:last-child {
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}
th {
  font:
    600 17px "PT Serif",
    Georgia,
    serif;
  background: var(--wash);
}
footer {
  border-top: 2px solid var(--ink);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}
@media (max-width: 700px) {
  main {
    padding: 22px 16px;
  }
  .panel {
    padding: 16px;
  }
  .volume {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .volume .filename {
    grid-column: span 2;
  }
  .section-head {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 54px;
  }
  .edition {
    font-size: 9px;
  }
  .brand {
    font-size: 9px;
  }
  #tabs {
    flex-wrap: wrap;
  }
  #tabs button {
    flex-basis: 50%;
  }
  .result-row {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px;
  }
  .stamp {
    grid-column: 2;
    justify-self: start;
  }
  footer {
    font-size: 9px;
  }
  .actions button,
  .actions .button {
    padding: 8px 10px;
  }
  td,
  th {
    padding: 10px 5px;
  }
  table {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  main {
    padding: 0;
    max-width: none;
  }
  button,
  .button {
    display: none;
  }
  .result-row {
    break-inside: avoid;
  }
  section {
    break-inside: auto;
  }
  a {
    color: black;
  }
  .stamp {
    color: black;
  }
  header {
    margin-bottom: 20px;
  }
}

.volume label > span {
  display: block;
  margin-top: 9px;
  color: var(--ink);
}

body { background: var(--wash); }
