/* BinClerk — shared local draft styles. Print-like, one column, system fonts. */

:root {
  --ink: #121212;
  --paper: #f6f3ec;
  --rule: #121212;
  --muted: #3d3d3d;
  --link: #0b3a7a;
  --warn: #6b1515;
  --band: #ece7dc;
  --focus: #0b3a7a;
  --max: 40rem;
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--ink);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 1.25rem 3.5rem;
}

header.site {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.draft-banner {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.65rem;
  margin: 0.85rem 0 0;
  background: var(--band);
}

h1 {
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 2rem 0 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--ink);
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

p,
li {
  margin: 0 0 0.7rem;
}

ul,
ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.25rem;
}

.lede {
  font-size: 1.05rem;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

nav.toc {
  background: var(--band);
  border: 1px solid var(--ink);
  padding: 0.75rem 1rem 0.35rem;
  margin: 1.25rem 0 1.5rem;
}

nav.toc p {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

nav.toc ol {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
}

nav.toc li {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #cfc8b8;
}

th {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--band);
  border-bottom: 1px solid var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.hero {
  border: 2px solid var(--ink);
  padding: 1rem 1rem 0.35rem;
  margin: 1.25rem 0;
  background: var(--paper);
}

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

.decision {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.card {
  border: 1px solid var(--ink);
  padding: 0.75rem 0.9rem 0.35rem;
}

.card h3 {
  margin-top: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.yes {
  border-width: 2px;
}

.no {
  background: var(--band);
}

.warn {
  color: var(--warn);
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
}

dl {
  margin: 0 0 1rem;
}

dt {
  font-weight: 700;
  margin-top: 0.7rem;
}

dd {
  margin: 0.15rem 0 0;
}

footer.site {
  margin-top: 2.5rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink);
  font-size: 0.88rem;
  color: var(--muted);
}

.who {
  margin: 0 0 1rem;
}

.who h3 {
  margin-bottom: 0.15rem;
}

.who p {
  margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
  .decision {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 1.9rem;
  }
}

@media print {
  html {
    font-size: 11pt;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #333;
  }

  .skip,
  nav.toc,
  .draft-banner {
    display: none;
  }

  .wrap {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .hero,
  .card,
  .table-wrap {
    break-inside: avoid;
  }
}
