:root {
  color-scheme: light;
  --ink: #172d3a;
  --muted: #465c68;
  --green: #14634e;
  --bg: #f5f7f4;
  --line: #d3dfd7;
  font:
    100%/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 4px;
}
header,
main,
footer {
  width: min(1040px, 100%);
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
main {
  padding-top: 48px;
  padding-bottom: 64px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 780px;
  margin: 12px 0 24px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 16px;
}
h3 {
  font-size: 1.1rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 680px;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button:hover,
button:hover {
  background: #104c3c;
}
.secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.secondary:hover {
  background: #e8f0ea;
}
.notice {
  padding: 20px 24px;
  border-left: 4px solid #a4600e;
  background: #fff5df;
  border-radius: 8px;
  margin: 24px 0;
}
.muted {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
section {
  scroll-margin-top: 24px;
}
.stack {
  display: grid;
  gap: 24px;
}
.summary-card {
  margin-bottom: 24px;
}
.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.card, .field, .inventory-row > *, input, select, textarea {
  min-width: 0;
}
.inventory-row label, .file-row {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-weight: 600;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 10px;
  border: 1px solid #84988b;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 100px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
input[type="file"] {
  padding: 12px;
}
.check {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 12px 0;
  min-height: 44px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.notice-calculator-field {
  margin-bottom: 16px;
}
.notice-calculator-actions {
  margin-top: 20px;
}
.notice-calculator-result {
  margin-top: 20px;
}
.notice-calculator-result h3 {
  margin-top: 0;
}
.status {
  min-height: 28px;
  color: var(--green);
}
.error {
  color: #9f1e1e;
}
.small {
  font-size: 0.9rem;
}
.file-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
img.preview {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 12px 0;
}
ul {
  padding-left: 22px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
}
progress {
  width: 100%;
  height: 22px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  font-size: 0.85rem;
}
th {
  background: #eef3f0;
  font-weight: 650;
}
td,
th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
/* Reference tables must never force the page to scroll sideways on a phone. */
.card {
  overflow-x: auto;
}
.inventory-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0;
}
.inventory-row label {
  font-weight: 400;
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  main {
    padding-top: 30px;
  }
  .grid,
  .fields {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  nav {
    gap: 4px 16px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .grid {
    gap: 16px;
    margin: 24px 0;
  }
  .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Commercial site additions */
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
main {
  max-width: 1040px;
  margin: 0 auto;
}
.summary-card {
  background: var(--soft, #f4f6fb);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 18px;
}
.summary-card strong {
  font-size: 1.5rem;
}
.card h2 {
  margin-top: 0;
}
ul.stack li {
  margin-bottom: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.cta-heading {
  margin-top: 48px;
  max-width: 620px;
}
main > .actions .button {
  width: auto;
}
