/* Additional styles used only on individual tool pages */

.tool-intro { max-width: 68ch; }
.tool-meta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.tool-meta-pill {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-500);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.25em 0.8em;
}

/* The document-preview sidebar panels (invoice / contract / proposal) were
   double-padded: the outer .panel padding plus the .doc-preview's own
   padding left very little usable width for the actual document. Trim the
   outer padding and let the document card use the full sidebar width. */
.preview-panel { padding: 1.1rem; }
.preview-panel h3 { margin-left: 0.15rem; margin-right: 0.15rem; }
.preview-panel .doc-preview { width: 100%; }

/* Stat cards used on tracker / dashboard style tools */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
.stat-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.stat-card b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.stat-card span { font-size: 0.78rem; color: var(--ink-500); }

/* Timer display */
.timer-display {
  font-family: var(--font-mono); font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 500;
  text-align: center; letter-spacing: 0.02em; color: var(--teal-dark);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-3); margin-bottom: var(--space-2);
}
.timer-controls { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-3); }

/* Sticky sidebar panels (live preview / summary cards) must stay within the
   viewport and scroll internally instead of growing taller than the screen —
   otherwise long contract/proposal text breaks the sticky effect. */
@media (min-width: 980px) {
  .tool-side > .panel {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

/* Slider */
.field input[type="range"] { padding: 0; accent-color: var(--teal); }

/* Signature-style line for contract preview */
.sig-line { border-bottom: 1px solid #999; width: 220px; display: inline-block; margin: 0 0.5em; }

@media print {
  /* Only the final document should print — hide all site chrome and the
     editable form column, and show the actual preview at full width
     instead of the cropped, sticky sidebar version used on screen. */
  .site-header, .mobile-nav, .site-footer, .save-toast, .no-print, .breadcrumbs { display: none !important; }
  body { background: #fff; }
  .tool-shell { padding: 0; }
  .tool-layout.with-side { display: block; }
  .tool-side { width: 100%; }
  .tool-side > .panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    border: none; padding: 0;
  }
  .preview-panel h3 { display: none; }
  .doc-preview { border: none; box-shadow: none; padding: 0; }
  .wrap { max-width: 100%; padding: 0; }
  main { margin: 0; }
}
