:root {
  --navy: #003366;
  --navy-ink: #00264d;
  --gold: #fdc600;
  --ink: #1b2833;
  --muted: #5d6d7c;
  --line: #d5dee6;
  --paper: #eef2f6;
  --card: #ffffff;
  --ham: #fff8de;
  --heb: #e8f0f8;
  --mid: #f3f5f7;
  --danger: #8c2f2f;
  --shadow: 0 1px 2px rgba(0, 51, 102, 0.06), 0 8px 24px rgba(0, 51, 102, 0.06);
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.45;
}

.top {
  background: #000;
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-actions { display: flex; align-items: center; gap: 18px; }
.text-btn {
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 6px 0;
  min-height: 44px;
  cursor: pointer;
}
.text-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.text-btn:hover, .text-btn[aria-pressed="true"] { border-bottom-color: var(--gold); color: var(--gold); }
.logo { height: 28px; width: 98px; display: block; flex: 0 0 auto; filter: brightness(0) invert(1); }
.top h1 {
  margin: 0;
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.kicker {
  margin: 0 0 8px;
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
}
.intro, .info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  margin-bottom: 14px;
}
.info {
  max-width: 1148px;
  width: calc(100% - 32px);
  margin: 16px auto 48px;
}
.intro h2, .info h2 {
  margin: 0 0 14px;
  max-width: none;
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
  text-align: left;
}
.lead { margin: 0; max-width: none; font-size: 17px; line-height: 1.55; text-align: left; }
.how { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.how ol { margin: 0; padding: 0; list-style: none; }
.how li {
  margin: 0;
  padding: 12px 0 12px 42px;
  position: relative;
  max-width: none;
  border-bottom: 1px solid #e6edf2;
  text-align: left;
}
.how li:last-child { border-bottom: 0; }
.how li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 12px;
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.how ol { counter-reset: step; }
.aside { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: left; }
.info h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
  text-align: left;
}
.info p {
  margin: 0 0 14px;
  max-width: none;
  line-height: 1.55;
  text-align: left;
}
.eq-list {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  max-width: none;
  font-variant-numeric: tabular-nums;
}
.eq-list li {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  column-gap: 18px;
  align-items: baseline;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e6edf2;
  text-align: left;
}
.limit { margin-top: 10px !important; margin-bottom: 0 !important; color: var(--muted); }

.note, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.note { padding: 14px 16px; margin-bottom: 14px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

.drop {
  border: 1.5px dashed #9aafc2;
  border-radius: 12px;
  background: #fff;
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 14px;
}
.drop.over { border-color: var(--navy); background: #f7fbff; }
.drop p { margin: 8px 0 0; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }

button, .file-btn {
  font-family: inherit;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  min-height: 44px;
}
.primary { background: #000; color: #fff; font-weight: 650; }
.primary:hover { background: #222; }
.ghost { background: #000; color: #fff; border-color: #000; }
.ghost:hover { background: #222; }
.file-btn { display: inline-block; }
input[type="file"] { display: none; }

.files { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font: inherit;
  min-height: 40px;
}
.chip.on { background: #000; color: #fff; border-color: #000; }

.card { padding: 14px; margin-bottom: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card h2 { margin: 0; font-size: 18px; color: #000; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.figcap { margin: 0 0 18px; color: #000; font-weight: 700; font-size: 13px; line-height: 1.2; }
.warn { color: var(--danger); font-weight: 650; }

.unit-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.unit-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 650; }
select {
  font: inherit;
  min-height: 44px;
  border: 1px solid #b7c6d4;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.charts { display: grid; grid-template-columns: 1fr; gap: 12px; }
canvas {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: center; white-space: nowrap; }
th { font-size: 12px; letter-spacing: 0.02em; color: var(--navy); background: #f8fafc; position: sticky; top: 0; }
th .ht, th .hu { display: block; text-align: center; }
th .hu { font-weight: 400; }
th.eqcol, td.eqcol { background: #e8f0f8; font-weight: 650; }
th.carry, td.carry { background: #fff8de; font-weight: 650; }
td .mark, td .sub { display: block; font-size: 12px; font-weight: 500; }
td .sub { color: var(--muted); }
caption { caption-side: top; text-align: left; color: var(--ink); font-size: 13px; padding: 0 0 8px; }

details { margin-top: 8px; }
summary { cursor: pointer; color: var(--navy); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.eq { font-variant-numeric: tabular-nums; }
.eq p { margin: 8px 0; }

footer { color: var(--muted); font-size: 13px; margin-top: 8px; }

#print-sheet { display: none; }

@page {
  size: letter;
  margin: 1.05in 0.65in 0.95in;
  @top-left {
    content: "BLACKLAND";
    font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
    font-size: 16pt;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #000;
    vertical-align: middle;
  }
  @top-right {
    content: url("keller-mark-small.png");
    vertical-align: middle;
  }
  @bottom-center {
    content: "Keller North America\A 8261 Belleview Drive, Suite 150, Plano, Texas 75024\A Toll free 800-422-4667  ·  Telephone 972-294-5000  ·  Fax 972-294-2664";
    white-space: pre;
    font-family: Calibri, Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.35;
    color: #000;
    border-top: 3px solid #fdc600;
    padding-top: 5pt;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .top-inner { padding: 10px 14px 12px; gap: 10px; }
  .top-actions { gap: 12px; flex-shrink: 0; }
  .logo { height: 22px; width: 77px; }
  .intro, .info { padding: 22px 18px 18px; }
  .eq-list li { grid-template-columns: 1fr; row-gap: 2px; }
  .intro h2, .info h2 { font-size: 24px; }
  .top h1 { letter-spacing: 0.08em; font-size: 15px; }
  .text-btn { letter-spacing: 0.12em; font-size: 12px; }
}

@media print {
  .top, main, #info { display: none !important; }
  #print-sheet {
    display: block !important;
    margin: 0;
    padding: 0;
  }
  html, body { margin: 0; padding: 0; background: #fff; }
  #print-sheet, #print-sheet * {
    font-family: Calibri, Arial, sans-serif;
    color: #000;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-weight: normal;
  }
  .print-job { break-before: page; page-break-before: always; }
  .print-job:first-child { break-before: auto; page-break-before: auto; }
  #print-sheet .print-running { display: none !important; }
  #print-sheet .mast-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18pt;
  }
  #print-sheet .mast-name {
    margin: 0;
    font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
    font-size: 20pt;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
  }
  #print-sheet .mast-logo {
    width: 2.15in;
    height: 0.62in;
    object-fit: contain;
    object-position: right center;
    filter: none !important;
    background: #fff !important;
  }
  #print-sheet .rule { margin: 5pt 0 4pt; }
  #print-sheet .rule-gold {
    border-top: 3px solid #fdc600;
    height: 0;
    margin: 0;
  }
  #print-sheet .rule-navy {
    border-top: 1px solid #036;
    height: 0;
    margin: 1.5pt 0 0;
  }
  #print-sheet .mast-sub {
    margin: 0;
    font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
    font-size: 9pt;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1;
  }
  #print-sheet h1 {
    text-align: center;
    font-size: 12pt;
    line-height: 2;
    margin: 0;
  }
  #print-sheet h2 {
    background: #fdc600 !important;
    color: #000;
    text-align: center;
    font-size: 13pt;
    font-weight: 700;
    line-height: 1.3;
    margin: 8pt 0 8pt;
    padding: 5pt 8pt;
  }
  #print-sheet .body {
    font-size: 12pt;
    line-height: 2;
    margin: 0;
    text-align: left;
  }
  #print-sheet .limits {
    margin: 0 0 12pt 0.25in;
    padding: 0;
    font-size: 12pt;
    line-height: 1.15;
  }
  #print-sheet .limits li { margin: 0; line-height: 1.15; }
  #print-sheet figure { margin: 12pt 0; }
  #print-sheet figure img { width: 100%; height: auto; border: none; }
  #print-sheet figcaption {
    font-size: 12pt;
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    text-align: left;
    margin: 10pt 0 0;
  }
  #print-sheet .scroll { overflow: visible; break-before: page; page-break-before: always; }
  #print-sheet table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
    font-size: 12pt;
    line-height: 1.15;
    border-collapse: collapse;
  }
  #print-sheet caption {
    caption-side: top;
    text-align: left;
    font-size: 12pt;
    line-height: 1.15;
    padding: 0 0 6pt;
  }
  #print-sheet th, #print-sheet td {
    position: static !important;
    border: 0.6pt solid #000;
    padding: 3pt 2pt;
    text-align: center;
    white-space: normal;
    font-size: 12pt;
    line-height: 1.15;
  }
  #print-sheet thead { display: table-header-group; }
  #print-sheet thead th {
    font-weight: 700;
    white-space: normal;
  }
  #print-sheet th .ht, #print-sheet th .hu { display: block; text-align: center; }
  #print-sheet td .mark { display: block; }
  #print-sheet tr, #print-sheet figure { break-inside: avoid; page-break-inside: avoid; }
}

@media (min-width: 900px) {
  .logo { height: 32px; }
  .top h1 { font-size: 26px; }
  .charts {
    grid-template-columns: 190px 190px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
  }
  .charts .wide { grid-column: auto; margin-left: 12px; }
  .drop { padding: 28px; }
}
