@page { size: letter; margin: 0.4in; }
  :root { --ink: #16232d; --muted: #4a5a66; --brand: #1f4e5f; --accent: #7d5f25; --line: #d7dee2; --soft: #f3f6f7; }
  * { box-sizing: border-box; }
  body { margin: 0; background: #e9eef0; color: var(--ink); font-family: "Segoe UI", -apple-system, Arial, sans-serif; font-size: 10pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toolbar { max-width: 8.5in; margin: 20px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 11pt; }
  .toolbar a { color: var(--brand); font-weight: 600; }
  .sheet { background: #fff; max-width: 8.5in; margin: 12px auto 32px; padding: 0.45in; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
  header.top { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--brand); padding-bottom: 12px; }
  header.top img { width: 54px; height: 54px; }
  header.top h1 { margin: 0; font-size: 20pt; line-height: 1.1; color: var(--brand); }
  header.top .kind { margin: 2px 0 0; font-size: 10pt; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
  header.top .contact { margin-left: auto; text-align: right; font-size: 9pt; color: var(--muted); line-height: 1.5; }
  .cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; margin-top: 14px; }
  h2 { font-size: 10.5pt; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 14px 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
  h2:first-child { margin-top: 0; }
  h3 { font-size: 10pt; margin: 8px 0 2px; }
  p { margin: 0 0 6px; }
  ul { margin: 0 0 4px; padding-left: 16px; }
  li { margin-bottom: 2px; }
  aside { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; align-self: start; }
  dl { margin: 0; }
  dt { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-top: 8px; }
  dt:first-child { margin-top: 0; }
  dd { margin: 1px 0 0; }
  .pending { display: inline-block; font-size: 8pt; font-weight: 700; padding: 0 7px; border-radius: 99px; background: #fff4e0; color: #7a4f00; border: 1px solid #efd3a0; }
  .naics { width: 100%; border-collapse: collapse; font-size: 8.5pt; line-height: 1.3; }
  .naics td, .naics th { padding: 1px 0; vertical-align: top; text-align: left; }
  .naics th, .naics td:first-child { font-weight: 700; width: 48px; }
  .table-scroll { overflow-x: auto; }
  .ph { background: #fff4c2; outline: 1px dashed #c9a100; padding: 0 2px; border-radius: 2px; }
  footer.bottom { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 8pt; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .page-social { max-width: 8.5in; margin: -12px auto 28px; padding: 0 16px; }
  .page-social ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; justify-content: center; }
  .page-social a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #9fb3bd; border-radius: 50%; color: var(--brand); background: #fff; }
  .page-social a:hover { background: var(--brand); color: #fff; }
  .page-social a:focus-visible { outline: 3px solid #b35c00; outline-offset: 2px; }
  .page-social svg { width: 20px; height: 20px; }
  @media (max-width: 720px) {
    .cols { grid-template-columns: 1fr; }
    header.top { flex-wrap: wrap; }
    header.top .contact { margin-left: 0; text-align: left; width: 100%; }
    .sheet { padding: 20px 16px; }
  }
  @media print {
    body { background: #fff; }
    .toolbar, .page-social { display: none; }
    .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
    /* The code tables are long now; keep the statement on one page. */
    .cols { grid-template-columns: 1.2fr 1fr; gap: 16px; }
    aside { padding: 8px 10px; font-size: 8.5pt; line-height: 1.3; }
    aside dt { margin-top: 5px; font-size: 7.5pt; }
    .naics { font-size: 7.5pt; line-height: 1.2; }
    .naics th, .naics td:first-child { width: 40px; }
    .cols > div { font-size: 9pt; line-height: 1.3; }
    .cols h2 { margin: 9px 0 4px; }
    .cols h3 { margin: 5px 0 1px; }
    .cols li { margin-bottom: 1px; }
    .cols p { margin-bottom: 4px; }
    .cols { margin-top: 8px; }
    header.top { padding-bottom: 8px; }
    footer.bottom { margin-top: 8px; padding-top: 5px; }
    .cols > div, aside { padding-bottom: 0; }
    .cols h2:last-of-type + p { margin-bottom: 0; }
  }
