:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --ink: #142433;
  --muted: #3d5160;
  --line: #d5dee3;
  --border: #5c7180;
  --accent: #0c6b63;
  --accent-dark: #084e49;
  --accent-soft: #e7f4f2;
  --accent-line: #b7ddd7;
  --danger: #8c2f2f;
  --danger-bg: #fdf2f2;
  --focus: #0f3d8a;
  --warn-bg: #fbf6ea;
  --warn-line: #ead7a2;
  --warn-text: #6a5110;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 36, 51, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

html:has(body.has-quote) {
  scroll-padding-bottom: 6.5rem;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

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

p {
  margin: 0 0 0.8rem;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: #063f3b;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.narrow {
  max-width: 44rem;
}

.contact-email {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 0.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 5.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav > a,
.nav-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.nav-details summary:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav-details summary {
  width: fit-content;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-details summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu {
  display: none;
  padding: 0.15rem 0 0.35rem 0.2rem;
}

.nav-details[open] .nav-menu {
  display: grid;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.25rem 0 0.5rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.formula-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 0.4rem;
}

.formula-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formula-card li {
  padding: 0.8rem 0;
}

.formula-card li + li {
  border-top: 1px solid var(--line);
}

.formula-card strong {
  display: block;
}

.formula-card span {
  color: var(--muted);
}

.section {
  padding: 1.4rem 0 0.4rem;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.trade-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.trade-card:hover {
  border-color: var(--accent);
}

.trade-card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.text-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.steps h3::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.callout {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.faq details {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq details + details {
  margin-top: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq summary h3 {
  display: inline;
  font-size: 1.02rem;
}

.faq details p:last-child {
  margin-bottom: 0.15rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.3rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.cta-band h2,
.cta-band p {
  margin: 0;
}

.cta-band p {
  margin-top: 0.3rem;
  color: #d7e2e6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.footer-heading {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-weight: 700;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.3rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.footer-base {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.page-hero {
  padding: 2rem 0 0.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.noscript {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
}

.calc-layout {
  display: block;
  max-width: 44rem;
  margin-inline: auto;
  padding-bottom: 1.5rem;
}

.panel {
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

fieldset {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.75rem;
  padding: 0;
  font-weight: 700;
}

.field {
  margin-bottom: 0.95rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1rem;
  scroll-margin-top: 5.25rem;
}

.step-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 52px;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.step-index {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.step-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.step-tab[aria-selected="true"] .step-index {
  color: #fff;
}

#step-heading {
  scroll-margin-top: 5.5rem;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.step-nav .button {
  flex: 1 1 8rem;
}

.optional-block {
  margin: 0 0 0.85rem;
  padding: 0.15rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
}

.optional-block summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.optional-block[open] {
  padding-bottom: 0.7rem;
}

.step-panel > .button {
  margin: 0.2rem 0 0.4rem;
}

.price-callout {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
}

.line-section,
.paint-helper {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.line-section legend,
.paint-helper legend {
  font-size: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.help,
.disclaimer,
.formula,
.explain,
.row-detail {
  color: var(--muted);
  font-size: 0.92rem;
}

.help,
.error {
  margin: 0.35rem 0 0;
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
}

.error:empty {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.affix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.affix input {
  border: 0;
  background: transparent;
}

.affix .currency-symbol,
.affix .suffix {
  padding-inline: 0.75rem;
  color: var(--muted);
}

.affix:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.affix input:focus,
.affix input:focus-visible {
  outline: none;
}

input.is-invalid,
textarea.is-invalid,
.affix.is-invalid {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.form-actions .button {
  flex: 1 1 9rem;
}

#quote-result {
  scroll-margin-top: 5.25rem;
}

.results-card h2 {
  margin-bottom: 0.8rem;
}

.empty-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.who {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.9rem;
}

.who div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}

.who dt {
  color: var(--muted);
}

.who dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.job-line {
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.final-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.final-amount {
  margin: 0.1rem 0 0.2rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.final-meta,
.explain,
.formula,
.note,
.disclaimer {
  margin-bottom: 0.7rem;
}

.note {
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn-text);
}

.breakdown {
  width: 100%;
  margin: 0.4rem 0 0.8rem;
  border-collapse: collapse;
}

.breakdown th,
.breakdown td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.breakdown th {
  padding-right: 1rem;
  font-weight: 600;
  text-align: left;
}

.breakdown td {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.breakdown .group-row th {
  padding-top: 0.9rem;
  border-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breakdown .subtotal-row th,
.breakdown .subtotal-row td,
.breakdown .final-row th,
.breakdown .final-row td {
  border-top: 2px solid var(--ink);
  font-weight: 700;
}

.row-detail {
  display: block;
  font-weight: 500;
}

.mobile-total {
  display: none;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.section-label {
  margin: 1.15rem 0 0.55rem;
}

.draft-bar,
.chip-row,
.side-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.side-stack {
  display: grid;
  align-content: start;
}

.chip {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.chip:hover {
  background: #d7eee9;
}

.line-item {
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
}

.line-grid {
  display: grid;
  gap: 0.55rem;
}

.line-grid .field {
  margin-bottom: 0;
}

.line-label {
  font-size: 0.92rem;
}

.line-total {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.button-small {
  padding: 0.45rem 0.7rem;
}

.note.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.preview-sheet {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.party-line {
  margin: 0;
  overflow-wrap: anywhere;
}

.preserve-breaks {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-lines {
  width: 100%;
}

.customer-lines th,
.customer-lines td {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.customer-lines td:last-child,
.customer-lines th:last-child {
  text-align: right;
  white-space: nowrap;
}

.draft-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.draft-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.draft-title {
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.draft-dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: min(40rem, calc(100% - 2rem));
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.draft-dialog::backdrop {
  background: rgba(20, 36, 51, 0.45);
}

.review-banner {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
}

.feedback-link {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.review-feedback-icon {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.1rem;
  color: var(--accent-dark);
}

.review-feedback h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.review-feedback p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-feedback .button {
  min-height: 44px;
}

.feedback-questions {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.feedback-questions li + li {
  margin-top: 0.85rem;
}

#feedback-action:empty {
  display: none;
}

#feedback-action .button {
  margin: 0.2rem 0 1rem;
}

.placeholder {
  padding: 0.15rem 0.35rem;
  background: var(--warn-bg);
  font-weight: 600;
}

@media (min-width: 720px) {
  .line-grid {
    grid-template-columns: minmax(0, 1.4fr) 0.55fr 0.7fr minmax(6.5rem, 0.8fr) auto;
    align-items: end;
  }
}

.print-sheet {
  display: none;
}

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 1.1rem;
    padding: 0;
  }

  .nav-details {
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 40;
    min-width: 16rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-details[open] .nav-menu {
    display: grid;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: center;
    padding-top: 3.2rem;
  }
}

@media (max-width: 959px) {
  .mobile-total:not([hidden]) {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(20, 36, 51, 0.06);
  }

  body.has-quote {
    padding-bottom: 5.4rem;
  }

  .mobile-total-link {
    display: grid;
    color: inherit;
    text-decoration: none;
  }

  .mobile-total-link span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-total-amount {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
  }
}

@media print {
  @page {
    size: auto;
    margin: 0.6in;
  }

  html,
  body {
    margin: 0;
    padding: 0 !important;
    height: auto;
    overflow: visible;
    background: #fff;
    color: #000;
  }

  .no-print {
    display: none !important;
  }

  .print-sheet {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    color: #142433;
    background: #fff;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    overflow: visible;
  }

  .print-head {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 0.4in;
    align-items: start;
    margin: 0 0 0.28in;
    padding-bottom: 0.16in;
    border-bottom: 2.5px solid #142433;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-kicker,
  .print-label {
    margin: 0 0 0.04in;
    color: #3d5160;
    font-size: 8.5pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .print-title {
    margin: 0;
    color: #142433;
    font-size: 22pt;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .print-trade {
    margin: 0.04in 0 0;
    font-size: 11pt;
  }

  .print-contact {
    margin-top: 0.1in;
    font-size: 10.5pt;
  }

  .print-contact p,
  .print-party p,
  .print-extra p,
  .print-scope .preserve-breaks {
    margin: 0;
  }

  .print-facts {
    margin: 0;
    text-align: right;
  }

  .print-facts div + div {
    margin-top: 0.1in;
  }

  .print-facts dt {
    margin: 0;
    color: #3d5160;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .print-facts dd {
    margin: 0;
    font-size: 11pt;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  .print-party,
  .print-scope {
    margin: 0 0 0.22in;
  }

  .print-job-title {
    margin: 0 0 0.04in;
    font-size: 14pt;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .preserve-breaks {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .print-sheet table.lines {
    width: 100%;
    margin: 0.04in 0 0.12in;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-sheet col.col-desc { width: 54%; }
  .print-sheet col.col-qty { width: 12%; }
  .print-sheet col.col-unit { width: 16%; }
  .print-sheet col.col-amt { width: 18%; }

  .print-sheet table.lines th,
  .print-sheet table.lines td {
    padding: 0.08in 0.1in 0.08in 0;
    border-bottom: 1px solid #c5d0d6;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  .print-sheet table.lines .col-qty,
  .print-sheet table.lines .col-unit,
  .print-sheet table.lines .col-amt {
    padding-left: 0.1in;
  }

  .print-sheet table.lines thead th {
    padding-bottom: 0.06in;
    border-bottom: 1.5px solid #142433;
    color: #3d5160;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .print-sheet table.lines .col-qty {
    white-space: nowrap;
  }

  .print-sheet table.lines .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .print-sheet table.lines tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-sheet thead {
    display: table-header-group;
  }

  .print-sheet .subtotal-row th,
  .print-sheet .subtotal-row td {
    border-bottom: 0;
    font-weight: 600;
  }

  .print-sheet .subtotal-row th {
    text-align: right;
    padding-top: 0.08in;
  }

  .print-sheet .total-row th,
  .print-sheet .total-row td {
    border-bottom: 0;
    border-top: 2.5px solid #142433;
    padding-top: 0.1in;
    font-size: 16pt;
    font-weight: 700;
    line-height: 1.2;
  }

  .print-sheet .total-row th {
    text-align: right;
  }

  .print-extra {
    margin-top: 0.18in;
    break-inside: auto;
    page-break-inside: auto;
  }

  .print-note,
  .print-disclaimer {
    margin: 0.14in 0 0;
    font-size: 9.5pt;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .print-disclaimer {
    margin-top: 0.28in;
    padding-top: 0.1in;
    border-top: 1px solid #c5d0d6;
    color: #3d5160;
    font-size: 8.5pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
