/* Shared styles for the trade estimate calculators and the price list generator.
   Tokens come from /style.css (Meridian). No hardcoded colours here. */

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1.5rem;
}
.calc-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  max-width: 46rem;
}
.calc-row { margin-bottom: 1rem; }
.calc-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.calc-row input,
.calc-row select {
  width: 100%;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  color: var(--text-hi);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.calc-row .hint {
  font-size: 0.8rem;
  color: var(--mute-dark);
  margin-top: 0.3rem;
}
.calc-out {
  border-top: 1px solid var(--rule-dark);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
}
.calc-out .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.calc-out .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-top: 0.25rem;
}
.calc-out .val.big { color: var(--accent-light); }
.calc-cta {
  background: var(--tint);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  max-width: 46rem;
}
.calc-cta p { margin: 0 0 0.9rem; color: var(--text-strong); }
.guide-list { margin-bottom: 1rem; padding-left: 1.25rem; }
.guide-list li { margin-bottom: 0.5rem; }

body.embedded .site-header, body.embedded .site-footer,
body.embedded .below-fold, body.embedded .calc-cta,
body.embedded nav[aria-label="Breadcrumb"] { display: none; }

/* ----- Price list generator ----- */
.pl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}
@media (max-width: 860px) { .pl-layout { grid-template-columns: 1fr; } }
.pl-form {
  background: var(--bg-soft);
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 1.25rem;
}
.pl-form .calc-row input { max-width: none; }
.pl-items { margin: 0.5rem 0 1rem; }
.pl-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 0.9fr) auto;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
@media (max-width: 520px) {
  .pl-item { grid-template-columns: 1fr 1fr; }
}
.pl-item input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: var(--bg);
  color: var(--text-hi);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.pl-item button,
.pl-add {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.pl-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.pl-sheet {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 2rem;
  min-height: 30rem;
}
.pl-sheet h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.pl-sheet .pl-contact { color: var(--mute); font-size: 0.9rem; margin: 0.25rem 0 0; }
.pl-sheet .pl-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pl-sheet table { width: 100%; border-collapse: collapse; }
.pl-sheet td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: top;
  color: var(--ink);
}
.pl-sheet td.price { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 1rem; }
.pl-sheet .svc { font-weight: 600; }
.pl-sheet .desc { color: var(--mute); font-size: 0.88rem; margin-top: 0.15rem; }
.pl-sheet .pl-note { margin-top: 1.25rem; color: var(--mute); font-size: 0.85rem; white-space: pre-line; }

/* Print only the sheet. The surrounding page is removed with display:none rather
   than hidden with visibility, which would keep its height and print blank pages
   after the sheet. */
@media print {
  @page { size: letter; margin: 0.5in; }
  .site-header, .site-footer, nav[aria-label="Breadcrumb"], main > h1, main > .text-secondary,
  .pl-form, .calc-cta, .below-fold { display: none !important; }
  .container-wide, .page-layout, .page-layout > main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .pl-layout { display: block; margin: 0; }
  .pl-sheet { border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 0; }
}
