/* ==============================================================================
   Ganpat Metal Pvt. Ltd. - Single Technical Blog Article Stylesheet
   File: css/blog-single.css
   ============================================================================== */

/* ── Article Layout Container ── */
.blog-single-sec {
  padding: 45px 0 70px;
  background-color: #f8fafc;
}

.blog-single-sec .container {
  /* Generous left-side container padding */
  padding-left: 35px;
  padding-right: 25px;
  max-width: 1240px;
}

.blog-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 35px;
  align-items: start;
}

/* ── Main Article Card ── */
.article-main-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  /* Increased left side padding: 75px */
  padding: 45px 45px 50px 75px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ── Article Header (Strictly Non-Sticky) ── */
.article-header {
  position: static !important;
  top: auto !important;
  z-index: 1 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 22px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #035392;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-title {
  position: static !important;
  top: auto !important;
  z-index: 1 !important;
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #64748b;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item i {
  color: #035392;
}

/* ── Featured Banner in Article ── */
.article-featured-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-height: 380px;
  object-fit: cover;
}

/* ── Lead Paragraph ── */
.article-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
  font-weight: 500;
}

/* ── Content Typography & Hierarchy ── */
.article-body-content {
  color: #334155;
  font-size: 15.5px;
  line-height: 1.85;
  padding-left: 10px;
}

.article-body-content h2 {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #035392;
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.article-body-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #16a34a;
}

.article-body-content h3 {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 17.5px;
  font-weight: 600;
  color: #0f172a;
  margin: 24px 0 10px;
}

.article-body-content p {
  margin-bottom: 16px;
}

.article-body-content strong {
  color: #0f172a;
}

.article-body-content a {
  color: #035392;
  text-decoration: underline;
  font-weight: 600;
}

.article-body-content a:hover {
  color: #16a34a;
}

/* ── Attractive Feature & Item Cards ── */
.flange-feature-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #035392;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.flange-feature-box.green-accent {
  border-left-color: #16a34a;
}

.flange-feature-box.orange-accent {
  border-left-color: #f59e0b;
}

.flange-feature-box h4 {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 15.5px;
  color: #035392;
  margin: 0 0 4px;
  font-weight: 600;
}

.flange-feature-box p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* ── Flange Type Cards Grid ── */
.flange-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0 26px;
}

.flange-type-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.flange-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  border-color: #035392;
}

.flange-type-icon {
  width: 38px;
  height: 38px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  margin-bottom: 10px;
}

.flange-type-card h4 {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #035392;
  margin: 0 0 6px;
}

.flange-type-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ── Interactive Calculator Callout ── */
.article-tool-cta {
  background: linear-gradient(135deg, #035392 0%, #023863 100%);
  color: #ffffff;
  padding: 22px 26px;
  border-radius: 10px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(3, 83, 146, 0.2);
}

.article-tool-cta-text {
  flex: 1;
}

.article-tool-cta-text h4 {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 17.5px;
  color: #ffffff;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-tool-cta-text p {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
}

.article-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.article-tool-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* ── Data Tables ── */
.article-table-wrap {
  overflow-x: auto;
  margin: 22px 0 28px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.article-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: #ffffff;
}

.article-data-table th {
  background-color: #035392;
  color: #ffffff;
  padding: 13px 16px;
  font-weight: 600;
  border-bottom: 2px solid #023863;
  white-space: nowrap;
}

.article-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.article-data-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.article-data-table tr:hover {
  background-color: #f1f5f9;
}

/* ── SIDEBAR STYLES ── */
.blog-sidebar,
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-sticky-wrap,
.article-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-card-title,
.sidebar-title {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #035392;
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid #16a34a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Quick RFQ Card */
.sidebar-rfq-card,
.sidebar-rfq-box {
  background: #035392;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(3, 83, 146, 0.18);
}

.sidebar-rfq-card .sidebar-card-title,
.sidebar-rfq-card .sidebar-title,
.sidebar-rfq-box .sidebar-card-title,
.sidebar-rfq-box .sidebar-title,
.sidebar-rfq-box h4 {
  color: #ffffff;
  border-bottom: 2px solid #4ade80;
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-rfq-card p,
.sidebar-rfq-box p {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-contact-info {
  margin-bottom: 16px;
}

.sidebar-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 8px;
}

.sidebar-contact-line i {
  color: #4ade80;
  font-size: 14px;
}

.sidebar-contact-line a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.sidebar-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 11px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.sidebar-btn-wa:hover {
  background: #20ba5a;
}

.sidebar-btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #035392;
  padding: 11px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease;
}

.sidebar-btn-quote:hover {
  background: #f1f5f9;
}

/* Sidebar RFQ Form Styles */
.sidebar-rfq-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar-rfq-input,
.sidebar-rfq-textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sidebar-rfq-input:focus,
.sidebar-rfq-textarea:focus {
  background: #ffffff;
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.sidebar-rfq-textarea {
  resize: vertical;
  min-height: 65px;
}

.sidebar-rfq-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.sidebar-rfq-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.sidebar-contact-direct {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-contact-direct span {
  font-size: 12px;
  color: #cbd5e1;
}

.sidebar-contact-direct a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.sidebar-contact-direct a:hover {
  color: #4ade80;
}

.sidebar-contact-direct a i.fa-brands.fa-whatsapp {
  color: #25d366;
}

.sidebar-contact-direct a i.fa-solid.fa-phone {
  color: #4ade80;
}

/* Sidebar Links & Table of Contents */
.sidebar-links-list,
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links-list li,
.sidebar-toc li {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-links-list li:last-child,
.sidebar-toc li:last-child {
  border-bottom: none;
}

.sidebar-links-list a,
.sidebar-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-links-list a:hover,
.sidebar-toc a:hover {
  color: #035392;
  transform: translateX(3px);
}

.sidebar-links-list a i,
.sidebar-toc a i {
  color: #94a3b8;
  font-size: 11px;
}

/* Sidebar Related Links with Title + Description */
.sidebar-related-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-related-links li {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}

.sidebar-related-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related-links a {
  display: block;
  text-decoration: none;
  color: #334155;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-related-links a:hover {
  transform: translateX(3px);
}

.sidebar-related-links a:hover strong {
  color: #035392;
}

.sidebar-related-links a strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.2s ease;
}

.sidebar-related-links a span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Sidebar Certifications list */
.sidebar-cert-card {
  /* Inherits .sidebar-card */
}

.sidebar-cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-cert-badge:last-child {
  border-bottom: none;
}

.sidebar-cert-badge i {
  font-size: 20px;
  color: #16a34a;
  flex-shrink: 0;
}

.sidebar-cert-badge div h5 {
  margin: 0 0 2px;
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.sidebar-cert-badge div p {
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

/* ── Responsive Adjustments ── */
@media (max-width: 991px) {
  .blog-single-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .blog-single-sec .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-main-card {
    padding: 35px 30px 40px 40px;
  }
  .article-title {
    font-size: 24px;
  }
  .article-tool-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .article-main-card {
    padding: 22px 18px 25px 22px;
  }
  .article-title {
    font-size: 20px;
  }
  .article-meta-row {
    font-size: 12px;
    gap: 10px;
  }
  .blog-single-sec .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==============================================================================
   ASME B16.5 Pressure-Temperature Derating Interactive Calculator
   Theme: Ganpat Metal Engineering & Technical Blue
   ============================================================================== */
.flange-calc-container {
  margin: 35px 0 40px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 6px 22px rgba(3, 83, 146, 0.06);
}

.flange-calc-header {
  margin-bottom: 22px;
}

.flange-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e0f2fe;
  color: #035392;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.flange-calc-title {
  font-family: var(--font-rubik, 'Rubik', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.flange-calc-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ── Calculator Grid ── */
.flange-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-bottom: 20px;
}

.flange-calc-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.flange-calc-panel-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: #035392;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flange-calc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.flange-calc-panel-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flange-calc-panel-header h4 i {
  color: #035392;
}

.flange-calc-badge-sm {
  font-size: 11px;
  font-weight: 600;
  color: #035392;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Form Inputs ── */
.flange-calc-form-group {
  margin-bottom: 14px;
}

.flange-calc-form-group:last-child {
  margin-bottom: 0;
}

.flange-calc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.flange-calc-opt {
  font-size: 11.5px;
  font-weight: 400;
  color: #94a3b8;
}

.flange-calc-select,
.flange-calc-input {
  width: 100%;
  font-size: 13.5px;
  font-family: inherit;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.flange-calc-select:focus,
.flange-calc-input:focus,
.flange-calc-seg-btn:focus-visible {
  outline: none;
  border-color: #035392;
  box-shadow: 0 0 0 3px rgba(3, 83, 146, 0.15);
}

.flange-calc-row {
  display: flex;
  gap: 8px;
}

.flange-calc-row > .flange-calc-input {
  flex: 1;
  min-width: 0;
}

.flange-calc-seg {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}

.flange-calc-seg-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 13px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flange-calc-seg-btn[aria-pressed="true"] {
  background: #035392;
  color: #ffffff;
}

/* ── Result Metrics ── */
.flange-calc-metric-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.flange-calc-k {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 4px;
}

.flange-calc-big {
  font-size: 32px;
  font-weight: 800;
  color: #035392;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.flange-calc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.flange-calc-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.flange-calc-stat-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

/* ── Alert Messages (from JS) ── */
.flange-calc-msg {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.flange-calc-msg > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.flange-calc-msg i {
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.flange-calc-msg.ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.flange-calc-msg.bad {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.flange-calc-msg.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.flange-calc-msg.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ── Chart & Table Panels ── */
.flange-calc-chart-panel,
.flange-calc-table-panel {
  margin-top: 20px;
}

.flange-calc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flange-calc-svg {
  width: 100%;
  height: auto;
  min-width: 520px;
  display: block;
}

.flange-calc-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.flange-calc-tbl th,
.flange-calc-tbl td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.flange-calc-tbl th:first-child,
.flange-calc-tbl td:first-child {
  text-align: left;
}

.flange-calc-tbl thead th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}

.flange-calc-tbl tr.hit td {
  background: #e0f2fe !important;
  font-weight: 700;
  color: #035392;
}

.flange-calc-tbl td.sel {
  color: #035392;
  font-weight: 700;
  background: rgba(3, 83, 146, 0.04);
}

.flange-calc-tbl th.sel {
  background: #035392;
  color: #ffffff;
}

.flange-calc-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin-top: 14px;
  margin-bottom: 0;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #035392;
}

.flange-calc-note i {
  color: #035392;
  margin-right: 4px;
}

@media (max-width: 768px) {
  .flange-calc-container {
    padding: 18px 14px;
  }
  .flange-calc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flange-calc-stat-grid {
    grid-template-columns: 1fr;
  }
  .flange-calc-big {
    font-size: 26px;
  }
}

/* ── MDMT Calculator Steps Cards Inside Operating Parameters Card ── */
.mdmt-steps-in-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1.5px dashed #cbd5e1;
}

.mdmt-step-mini-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #035392;
  border-radius: 6px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mdmt-step-mini-card.result-step {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.mdmt-step-mini-card .mdmt-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #035392;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.mdmt-step-mini-card.result-step .mdmt-step-badge {
  color: #15803d;
  background: #dcfce7;
}

.mdmt-step-mini-card .mdmt-step-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 576px) {
  .mdmt-step-mini-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
