/* Shared Copper & Limestone utility styles for /free-tools/* (Conflict #91) */
.ft-subbar {
  background: var(--surface, #F5F4EE);
  border-bottom: 1px solid var(--line, #D4D0C5);
}
.ft-subbar-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ft-subbar-in::-webkit-scrollbar { display: none; }
.ft-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 13px/1.25 Inter, system-ui, -apple-system, sans-serif;
  color: var(--dim, #52676C);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.ft-pill:hover { background: var(--bg, #EAE8E0); color: var(--ink, #1B2D31); text-decoration: none; }
.ft-pill.is-on { background: #1A2A2D; color: #F5F4EE; border-color: #1A2A2D; }

.ft-panel {
  margin-top: 24px;
  background: var(--surface, #F5F4EE);
  border: 1px solid var(--line, #D4D0C5);
  border-radius: 16px;
  padding: 24px;
}
.ft-paper {
  background: #FFFFFF;
  border: 1px solid var(--line, #D4D0C5);
  border-radius: 14px;
  padding: 22px;
  color: var(--ink, #1B2D31);
}
.ft-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}
.ft-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ft-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ft-field { margin-bottom: 14px; }
.ft-field label, .ft-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1B2D31);
  margin-bottom: 5px;
}
.ft-panel input[type="text"],
.ft-panel input[type="url"],
.ft-panel input[type="email"],
.ft-panel input[type="tel"],
.ft-panel input[type="number"],
.ft-panel select,
.ft-panel textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink, #1B2D31);
  background: #FFFFFF;
  border: 1.5px solid var(--line, #D4D0C5);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}
.ft-panel input:focus, .ft-panel select:focus, .ft-panel textarea:focus {
  outline: none;
  border-color: var(--accent, #A64120);
}
.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 18px;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  background: var(--accent, #A64120);
  color: #FFFFFF;
  text-decoration: none;
}
.ft-btn:hover { background: #8B3316; color: #FFFFFF; text-decoration: none; }
.ft-btn:disabled { opacity: .6; cursor: wait; }
.ft-btn.sec {
  background: #FFFFFF;
  color: var(--ink, #1B2D31);
  border: 1.5px solid var(--line, #D4D0C5);
}
.ft-btn.sec:hover { border-color: var(--ink, #1B2D31); background: var(--surface, #F5F4EE); }
.ft-btn.sm { font-size: 13.5px; padding: 8px 14px; min-height: 40px; }

.ft-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.ft-badge.green { background: #E3F2EB; color: #1E6B4B; }
.ft-badge.amber { background: #FBF1DF; color: #8A5400; }
.ft-badge.red { background: #FBE9E9; color: #9E2A2B; }
.ft-badge.copper { background: #F4EAE4; color: #A64120; }

.ft-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ft-stat {
  background: var(--surface, #F5F4EE);
  border: 1px solid var(--line, #D4D0C5);
  border-radius: 10px;
  padding: 12px 13px;
  min-width: 0;
}
.ft-stat .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim, #52676C); }
.ft-stat .v { font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: var(--ink, #1B2D31); margin-top: 4px; font-variant-numeric: tabular-nums; }

.ft-check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #D4D0C5);
}
.ft-check-row:last-child { border-bottom: 0; }
.ft-check-row p { margin: 3px 0 0; font-size: 13.5px; color: var(--dim, #52676C); }

.ft-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ft-tabs button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line, #D4D0C5);
  background: #FFFFFF;
  color: var(--dim, #52676C);
  cursor: pointer;
}
.ft-tabs button[aria-selected="true"] {
  background: #1A2A2D;
  color: #F5F4EE;
  border-color: #1A2A2D;
}

.ft-line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 40px;
  gap: 8px;
  margin-bottom: 8px;
}
.ft-chk-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: #FFFFFF;
  border: 1px solid var(--line, #D4D0C5);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink, #1B2D31);
}
.ft-chk-pill input { width: 18px; height: 18px; accent-color: var(--accent, #A64120); flex: none; }

.ft-bridge {
  margin-top: 24px;
  padding: 18px 20px;
  background: #1A2A2D;
  color: #F5F4EE;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.ft-bridge p { color: #CDD7D8; font-size: 14.5px; margin: 0; max-width: 62ch; line-height: 1.55; }
.ft-bridge strong { color: #FFFFFF; }

.ft-note-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface, #F5F4EE);
  border: 1px solid var(--line, #D4D0C5);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--dim, #52676C);
  line-height: 1.55;
}
.ft-note-box strong { color: var(--ink, #1B2D31); }

/* Print-clean sheet output for Estimate PDF & Review QR Card */
.ft-print-sheet {
  background: #FFFFFF;
  border: 1.5px solid #1B2D31;
  border-radius: 12px;
  padding: 24px;
  color: #1B2D31;
}
@media (max-width: 820px) {
  .ft-split, .ft-grid2, .ft-grid3, .ft-stat-row { grid-template-columns: 1fr; }
  .ft-panel { padding: 18px 14px; }
  .ft-paper, .ft-print-sheet { padding: 16px; }
}
@media print {
  header.masthead, .ft-subbar, footer.site-foot, .ps-hero-band, .no-print { display: none !important; }
  body { background: #FFFFFF !important; }
  main, .wrap, .ft-panel { margin: 0 !important; padding: 0 !important; border: 0 !important; background: #FFFFFF !important; max-width: none !important; }
  .ft-split { display: block !important; }
  .ft-print-sheet { border: 1px solid #1B2D31 !important; border-radius: 0 !important; box-shadow: none !important; }
}
