/* Standards & Steel Grade Cross-Reference Styling */
.std-container {
  max-width: var(--site-max-width, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 0 4rem;
  width: 100%;
  box-sizing: border-box;
}

.std-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.std-hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5a059;
  margin-bottom: 0.5rem;
}

.std-hero h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  margin-bottom: 0.75rem;
  color: #111827;
}

.std-hero p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.std-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.std-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.std-search-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.std-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.std-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s;
}

.std-pill-btn:hover {
  background: #f1f5f9;
}

.std-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.std-grades-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.std-grade-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.std-grade-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.std-card-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.std-card-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.std-card-title h3 {
  font-size: 1.35rem;
  margin: 0;
  color: #0f172a;
}

.std-badge-gost {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.std-badge-en {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.std-card-category {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.std-card-actions {
  display: flex;
  gap: 0.5rem;
}

.std-btn-action {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.std-btn-calc {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.std-btn-calc:hover {
  background: #e2e8f0;
}

.std-btn-rfq {
  background: #c5a059;
  color: #ffffff;
}

.std-btn-rfq:hover {
  background: #b08c43;
}

.std-card-body {
  padding: 1.5rem;
}

.std-spec-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.std-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.std-chem-table, .std-mech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: center;
}

.std-chem-table th, .std-chem-table td,
.std-mech-table th, .std-mech-table td {
  padding: 0.55rem 0.6rem;
  border: 1px solid #e2e8f0;
}

.std-chem-table th, .std-mech-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.std-chem-table td {
  color: #0f172a;
  font-weight: 500;
}

.std-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .std-features-grid {
    grid-template-columns: 1fr;
  }
  .std-container {
    padding-bottom: 80px !important;
  }
}

.std-feature-box {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border-left: 3px solid #c5a059;
}

.std-feature-box strong {
  display: block;
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.std-feature-box p {
  color: #475569;
  line-height: 1.45;
  margin: 0;
}
