/* ================================================
   GRADE PAGE STYLES
   Loaded only on tool-steel grade detail pages
   ================================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.breadcrumb a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff }
.breadcrumb span { color: rgba(255,255,255,0.6) }

/* Grade navigation bar */
.grade-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 8px;
}
.grade-nav a {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.grade-nav a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.grade-nav a.active {
  background: rgba(29,78,216,0.12);
  border-color: rgba(29,78,216,0.3);
  color: #3b82f6;
}

/* Data tables */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.data-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.data-tbl th {
  background: #162042;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.3px;
}
.data-tbl td {
  padding: 10px 14px;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.data-tbl tr:last-child td { border-bottom: none }
.data-tbl tr:hover td { background: rgba(255,255,255,0.02) }
.data-tbl td:first-child { color: rgba(255,255,255,0.7); font-weight: 600 }

/* Section headings within grade pages */
.grade-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.grade-section-sub {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: rgba(255,255,255,0.85);
}

/* Accordion */
.acc-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
  user-select: none;
}
.acc-header:hover { background: rgba(255,255,255,0.04) }
.acc-header::after {
  content: "+";
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s;
  font-weight: 400;
}
.acc-item.open .acc-header::after {
  content: "\2212";
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-item.open .acc-body {
  max-height: 2000px;
}
.acc-content {
  padding: 16px 18px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
}
.acc-content p { margin-bottom: 10px }
.acc-content p:last-child { margin-bottom: 0 }

/* Chart gallery */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.chart-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #fff;
}
.chart-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Applications list */
.app-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.app-list li {
  padding: 8px 0 8px 18px;
  position: relative;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.app-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
}

/* Shapes row for grade pages */
.shapes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.shape-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: border-color 0.2s;
}
.shape-card:hover { border-color: rgba(255,255,255,0.12) }
.shape-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.shape-card span {
  display: block;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

/* Light page notice */
.specs-notice {
  padding: 24px;
  border: 1px dashed rgba(29,78,216,0.3);
  border-radius: 8px;
  background: rgba(29,78,216,0.04);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 24px 0;
}
.specs-notice strong { color: #3b82f6 }

/* Overview text */
.grade-overview {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 800px;
}
.grade-overview p { margin-bottom: 14px }

/* Responsive for grade pages */
@media (max-width: 768px) {
  .chart-row { grid-template-columns: 1fr }
  .app-list { grid-template-columns: 1fr }
  .shapes-row { grid-template-columns: 1fr }
  .grade-nav { gap: 6px }
  .grade-nav a { font-size: 11px; padding: 5px 10px }
}

@media (max-width: 480px) {
  .data-tbl { font-size: 12px }
  .data-tbl th, .data-tbl td { padding: 8px 10px }
}
