/* ==========================================================================
   Trident Metal Industries — Material Specs Section
   (Chemical Composition & Mechanical Properties)
   Unique, self-contained, fully responsive component.
   ========================================================================== */

.tmi-specs-section{
  background:#fff;
  position:relative;
  overflow:hidden;
}
.tmi-specs-section::before{
  content:"";
  position:absolute;
  top:-120px; right:-120px;
  width:340px; height:340px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(138,88,17,0.06) 0%, rgba(138,88,17,0) 70%);
  pointer-events:none;
}
.tmi-specs-section::after{
  content:"";
  position:absolute;
  bottom:-140px; left:-100px;
  width:300px; height:300px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(11,42,68,0.05) 0%, rgba(11,42,68,0) 70%);
  pointer-events:none;
}

.tmi-specs-card{
  position:relative;
  z-index:1;
  background:#fff;
  border:1px solid rgba(0,0,0,0.07);
  border-radius:16px;
  box-shadow:0 15px 45px rgba(11,42,68,0.07);
  overflow:hidden;
}

/* -------- Card top strip -------- */
.tmi-specs-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  padding:22px 28px;
  background:linear-gradient(135deg, #0B2A44 0%, #133A5C 100%);
  color:#fff;
}
.tmi-specs-card-top .tmi-specs-badge{
  display:flex;
  align-items:center;
  gap:12px;
}
.tmi-specs-card-top .tmi-specs-badge i{
  width:44px;height:44px;
  min-width:44px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(138,88,17,0.35);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:50%;
  font-size:18px;
  color:#f1c98a;
}
.tmi-specs-card-top .tmi-specs-badge .txt strong{
  display:block;
  font-size:15px;
  font-weight:700;
  letter-spacing:0.3px;
  color:#fff;
}
.tmi-specs-card-top .tmi-specs-badge .txt span{
  display:block;
  font-size:12.5px;
  color:rgba(255,255,255,0.65);
  margin-top:2px;
}

/* -------- Tabs (Chemical Composition / Mechanical Properties) -------- */
.tmi-specs-tabs{
  display:flex;
  background:rgba(255,255,255,0.08);
  border-radius:50px;
  padding:4px;
  gap:4px;
}
.tmi-specs-tab{
  border:0;
  background:transparent;
  color:rgba(255,255,255,0.75);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:0.2px;
  padding:9px 18px;
  border-radius:50px;
  cursor:pointer;
  transition:all .3s ease;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.tmi-specs-tab i{ font-size:13px; }
.tmi-specs-tab:hover{ color:#fff; }
.tmi-specs-tab.is-active{
  background:#8a5811;
  color:#fff;
  box-shadow:0 4px 14px rgba(138,88,17,0.45);
}

@media only screen and (max-width:576px){
  .tmi-specs-card-top{ padding:18px; flex-direction:column; align-items:stretch; }
  .tmi-specs-tabs{ width:100%; }
  .tmi-specs-tab{ flex:1; justify-content:center; padding:10px 8px; font-size:12.5px; }
}

/* -------- Grade pill selector -------- */
.tmi-grade-pillbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:22px 28px 6px;
}
.tmi-grade-pill{
  border:1.5px solid rgba(11,42,68,0.12);
  background:#fbfaf8;
  color:#0B2A44;
  font-size:13.5px;
  font-weight:600;
  padding:9px 18px;
  border-radius:10px;
  cursor:pointer;
  transition:all .25s ease;
  position:relative;
}
.tmi-grade-pill small{
  display:block;
  font-weight:400;
  font-size:11px;
  color:#8a8f96;
  margin-top:2px;
}
.tmi-grade-pill:hover{
  border-color:#8a5811;
  transform:translateY(-2px);
}
.tmi-grade-pill.is-active{
  background:#8a5811;
  border-color:#8a5811;
  color:#fff;
  box-shadow:0 8px 18px rgba(138,88,17,0.28);
}
.tmi-grade-pill.is-active small{ color:rgba(255,255,255,0.75); }

/* -------- Panels / Tables -------- */
.tmi-specs-body{
  padding:10px 28px 30px;
}
.tmi-grade-panel{ display:none; }
.tmi-grade-panel.is-active{ display:block; animation: tmiFadeUp .35s ease; }

@keyframes tmiFadeUp{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}

.tmi-specs-table-block{ display:none; }
.tmi-specs-table-block.is-active{ display:block; }

.tmi-specs-table-wrap{
  overflow-x:auto;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 3px 12px rgba(11,42,68,0.04);
  -webkit-overflow-scrolling:touch;
}
.tmi-specs-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  text-align:left;
  margin:0;
}
.tmi-specs-table thead tr{
  background:#0B2A44;
}
.tmi-specs-table thead th{
  color:#fff;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.4px;
  text-transform:uppercase;
  padding:14px 18px;
  white-space:nowrap;
  border:none;
}
.tmi-specs-table thead th:first-child{ border-radius:0; }
.tmi-specs-table tbody td{
  padding:13px 18px;
  font-size:14px;
  color:#3d4650;
  border-bottom:1px solid rgba(0,0,0,0.06);
  white-space:nowrap;
}
.tmi-specs-table tbody td:first-child{
  font-weight:700;
  color:#0B2A44;
}
.tmi-specs-table tbody tr:nth-child(even){ background:rgba(138,88,17,0.035); }
.tmi-specs-table tbody tr:hover{ background:rgba(138,88,17,0.09); }
.tmi-specs-table tbody tr:last-child td{ border-bottom:none; }

.tmi-specs-footnote{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:14px;
  font-size:13px;
  color:#6E777D;
  line-height:1.6;
}
.tmi-specs-footnote i{ color:#8a5811; margin-top:3px; }

@media only screen and (max-width:767px){
  .tmi-grade-pillbar{ padding:18px 18px 4px; gap:8px; }
  .tmi-specs-body{ padding:8px 18px 22px; }
  .tmi-grade-pill{ padding:8px 14px; font-size:12.5px; }
  .tmi-specs-table{ min-width:480px; }
  .tmi-specs-table thead th, .tmi-specs-table tbody td{ padding:11px 12px; font-size:13px; }
}
