
/* ToolsForEngineers Footing Tool v4
   - Scoped styling: ONLY affects elements inside .tfe-footing
*/

.tfe-footing{
  --tfe-bg: #ffffff;
  --tfe-card: #ffffff;
  --tfe-text: #111111;
  --tfe-muted: #555555;
  --tfe-line: #d9d9d9;
  --tfe-soft: #f6f6f6;
  --tfe-shadow: 0 6px 18px rgba(0,0,0,.08);
  --tfe-radius: 12px;
  --tfe-focus: rgba(0,0,0,.35);
  color: var(--tfe-text);
  font-family: inherit;
  background: transparent;
}

.tfe-footing *{ box-sizing: border-box; }
.tfe-footing a{ color: inherit; text-decoration: underline; }
.tfe-footing a:hover{ text-decoration: none; }

.tfe-footing .tfe-container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.tfe-footing[data-embed="1"] .tfe-toolHeader{ display:none; }

.tfe-footing .tfe-toolHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.tfe-footing h1{
  margin:0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1px;
}
.tfe-footing .tfe-sub{
  margin:6px 0 0;
  color: var(--tfe-muted);
  font-size: 12.5px;
}

.tfe-footing .tfe-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tfe-footing .tfe-btn,
.tfe-footing button.tfe-btn{
  appearance:none;
  border:1px solid var(--tfe-line);
  background: var(--tfe-bg);
  color: var(--tfe-text);
  padding: 9px 12px;
  border-radius: 10px;
  cursor:pointer;
  font: inherit;
  font-size: 13px;
}
.tfe-footing .tfe-btn:hover{ background: #f7f7f7; }
.tfe-footing .tfe-btn:active{ background: #efefef; }
.tfe-footing .tfe-btn:disabled{ opacity:.5; cursor:not-allowed; }

.tfe-footing .tfe-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .tfe-footing .tfe-grid{ grid-template-columns: 1fr; }
}

.tfe-footing .tfe-card{
  background: var(--tfe-card);
  border: 1px solid var(--tfe-line);
  border-radius: var(--tfe-radius);
  padding: 14px;
  box-shadow: var(--tfe-shadow);
}
.tfe-footing .tfe-card h2{
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
}

.tfe-footing .tfe-stepper{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}
.tfe-footing .tfe-step{
  border:1px solid var(--tfe-line);
  background: var(--tfe-bg);
  color: var(--tfe-muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.tfe-footing .tfe-step:hover{ background: #f7f7f7; }
.tfe-footing .tfe-step.active{
  color: var(--tfe-text);
  background: #f0f0f0;
}
.tfe-footing .tfe-step:focus,
.tfe-footing .tfe-btn:focus{
  outline: 2px solid var(--tfe-focus);
  outline-offset: 2px;
}

.tfe-footing .tfe-row{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  align-items:center;
  margin: 8px 0;
}
@media (max-width: 520px){
  .tfe-footing .tfe-row{ grid-template-columns: 1fr; }
}

.tfe-footing label{
  color: var(--tfe-text);
  font-size: 13px;
}
.tfe-footing input,
.tfe-footing select{
  width:100%;
  padding: 9px 10px;
  border-radius: 10px;
  border:1px solid var(--tfe-line);
  background: var(--tfe-bg);
  color: var(--tfe-text);
  font: inherit;
  font-size: 13px;
  outline:none;
}
.tfe-footing input:focus,
.tfe-footing select:focus{ border-color:#bdbdbd; }

.tfe-footing .tfe-small{
  font-size:12px;
  color: var(--tfe-muted);
}

.tfe-footing hr{
  border:0;
  border-top:1px solid var(--tfe-line);
  margin: 14px 0;
}

.tfe-footing .tfe-kv{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--tfe-line);
  border-radius: 10px;
  margin: 8px 0;
  background: var(--tfe-bg);
}
.tfe-footing .tfe-kv .k{ color: var(--tfe-muted); font-size: 12px; }
.tfe-footing .tfe-kv .v{ font-size: 13px; }

.tfe-footing .tfe-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--tfe-line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: var(--tfe-bg);
  margin: 0 6px 6px 0;
}

.tfe-footing .tfe-callout{
  border: 1px solid var(--tfe-line);
  border-radius: 10px;
  padding: 10px 10px;
  margin: 10px 0;
  background: var(--tfe-soft);
}
.tfe-footing .tfe-callout .title{
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
}

.tfe-footing .tfe-resultGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .tfe-footing .tfe-resultGrid{ grid-template-columns: 1fr; }
}

.tfe-footing ul{
  margin: 8px 0 0 18px;
  padding:0;
}
.tfe-footing li{ margin: 6px 0; }

.tfe-footing .tfe-printOnly{ display:none; }

@media print{
  .tfe-footing .tfe-noPrint{ display:none !important; }
  .tfe-footing .tfe-printOnly{ display:block; }
  .tfe-footing .tfe-card{ box-shadow:none; }
}
