/* ==========================================================================
   MINERAL SPECIFICATION PAGES - BALOCHISTAN MINERALS
   High-end B2B trade layout matching balochistanminerals.com design system
   ========================================================================== */

body.mineral-spec-page {
  background-color: #f8fafc;
  color: var(--text-primary, #2F3A40);
  font-family: var(--font-body, 'Poppins', sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* 1. HERO SECTION - CLEAN WHITE THEME */
.spec-hero {
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary, #2F3A40);
  padding: calc(var(--navbar-height, 72px) + 1.25rem) 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-light, #E2E8F0);
  position: relative;
}

.spec-hero__container {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2.25rem;
  align-items: center;
}

/* Compact, Subtle Breadcrumbs (Clean slate on white) */
.spec-hero__breadcrumb {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748B;
  margin-bottom: 0.65rem;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-hero__breadcrumb a {
  color: #475569;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.spec-hero__breadcrumb a:hover {
  color: var(--primary-gold-500, #E65C1A);
}

.spec-hero__breadcrumb span.sep {
  margin: 0 0.35rem;
  color: #CBD5E1;
  font-weight: 300;
}

.spec-hero__breadcrumb span.current {
  color: var(--primary-gold-500, #E65C1A);
  font-weight: 600;
}

/* Micro-Kicker (Vibrant primary gold/orange overline) */
.spec-hero__kicker {
  display: inline-block;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-gold-500, #E65C1A);
  margin-bottom: 0.45rem;
}

/* Refined H1 Title (Crisp, authoritative dark navy heading) */
.spec-hero__title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--navy-950, #0A1628);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

/* High-legibility Subtitle on White */
.spec-hero__subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.15rem;
  max-width: 620px;
}

/* Streamlined Inline Trust Indicators */
.spec-hero__trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0;
  list-style: none;
}

.spec-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: #334155;
  font-weight: 500;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
}

.spec-hero__trust-icon {
  color: #16A34A;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
}

.spec-hero__trust-dot {
  color: #CBD5E1;
  font-size: 0.75rem;
}

/* Refined Compact Buttons */
.spec-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.spec-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--primary-gold-500, #E65C1A);
  color: #ffffff;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid var(--primary-gold-500, #E65C1A);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.spec-btn-primary:hover {
  background: var(--primary-gold-600, #D45A15);
  border-color: var(--primary-gold-600, #D45A15);
  color: #ffffff;
}

/* White WhatsApp Button with Green Text & Icon */
.spec-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(37, 211, 102, 0.85);
  color: #075E54;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.spec-btn-whatsapp:hover {
  background: #f0fdf4;
  border-color: #128C7E;
  color: #054c44;
}

.spec-btn-whatsapp svg {
  fill: #25D366;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.spec-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-light, #CCD4DA);
  color: var(--navy-900, #0F1F3A);
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 0.74rem;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.spec-btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--primary-gold-500, #E65C1A);
  color: var(--primary-gold-600, #D45A15);
}

/* Specimen Gallery Card (Clean elevated white card) */
.spec-hero__visual {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.spec-hero__visual img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

.spec-hero__visual-badge {
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light, #E2E8F0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.spec-hero__visual-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-950, #0A1628);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-hero__visual-sub {
  font-size: 0.7rem;
  color: var(--primary-gold-500, #E65C1A);
  font-weight: 500;
  margin-top: 0.1rem;
}

.spec-hero__visual-tag {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--primary-gold-500, #E65C1A);
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* 2. EXECUTIVE METRICS STRIP (Full Black Theme, Full Width)
   To revert back to light theme, see REVERT BACKUP block below. */
.spec-metrics {
  background: #000000;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.5rem;
  box-sizing: border-box;
}

.spec-metrics__grid {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.spec-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--primary-gold-500, #E65C1A);
  padding: 1.1rem 1.25rem;
  border-radius: 4px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.spec-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 92, 26, 0.22);
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: var(--primary-gold-500, #E65C1A);
}

.spec-metric-card__label {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-gold-400, #F26A21);
  margin-bottom: 0.35rem;
}

.spec-metric-card__val {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.28rem;
  letter-spacing: 0.02em;
}

.spec-metric-card__desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin-top: auto;
}

/* ==========================================================================
   REVERT BACKUP: LIGHT EXECUTIVE METRICS STRIP STYLES
   To restore light theme: replace the rules above with these lines:
   
   .spec-metrics {
     background: #f8fafc;
     border-bottom: 1px solid var(--border-light, #E2E8F0);
     padding: 1.35rem 1.5rem;
   }
   .spec-metric-card {
     background: #ffffff;
     border: 1px solid var(--border-light, #E2E8F0);
     border-top: 3px solid var(--primary-gold-500, #E65C1A);
     padding: 1rem 1.15rem;
     border-radius: 4px;
     text-align: left;
     box-shadow: 0 2px 6px rgba(15, 31, 58, 0.03);
   }
   .spec-metric-card__label {
     color: var(--text-secondary, #4A5660);
   }
   .spec-metric-card__val {
     color: var(--navy-900, #0F1F3A);
   }
   .spec-metric-card__desc {
     color: var(--text-muted, #62707A);
   }
   ========================================================================== */

/* 3. MAIN CONTENT LAYOUT */
.spec-content {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.25rem;
  width: 100%;
  box-sizing: border-box;
}

.spec-main-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.spec-section-header {
  margin-bottom: 1.85rem;
  text-align: center;
}

.spec-section-kicker {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-gold-600, #D45A15);
  margin-bottom: 0.35rem;
  display: block;
  text-align: center;
}

/* Desktop Main Section Headings: Prominent, authoritative, executive scale */
body.mineral-spec-page .spec-section-title,
body.mineral-spec-page main h2.spec-section-title,
main h2.spec-section-title,
.spec-section-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.55rem !important;
  font-weight: 500 !important;
  color: var(--navy-900, #0F1F3A) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.25 !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.spec-section-intro {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary, #4A5660);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. TECHNICAL ASSAY TABLE */
.spec-table-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
  gap: 0.65rem;
}

.spec-table-header > div {
  text-align: center;
  width: 100%;
}

.spec-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-color: var(--primary-gold-500, #E65C1A);
  color: var(--primary-gold-600, #D45A15);
  font-size: 0.75rem;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid var(--border-light, #CCD4DA);
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 0.15rem auto 0 auto;
}

.spec-download-btn:hover {
  background: #fdfaf6;
  border-color: var(--primary-gold-500, #E65C1A);
  color: var(--primary-gold-600, #D45A15);
}

.spec-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold-500, #E65C1A) #F1F5F9;
}

.spec-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.spec-table-wrap::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 3px;
}

.spec-table-wrap::-webkit-scrollbar-thumb {
  background: var(--primary-gold-500, #E65C1A);
  border-radius: 3px;
}

/* Footnote beneath assay table */
.spec-table-wrap + p,
section[aria-labelledby="assay-table-title"] > p {
  text-align: center !important;
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.spec-table th {
  background: var(--navy-900, #0F1F3A);
  color: #ffffff;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  padding: 0.7rem 0.9rem;
  border: none;
  text-align: left;
}

.spec-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-light, #E5EAEE);
  color: var(--text-primary, #2F3A40);
  text-align: left;
}

.spec-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.spec-table tbody tr:hover td {
  background: #f1f5f9;
}

.spec-table__highlight {
  font-weight: 600;
  color: var(--navy-900, #0F1F3A);
  text-align: left;
}

/* 5. STRUCTURED PHYSICAL SIZING BOX (Centered) */
.spec-sizing-box {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  border-left: 3px solid var(--primary-gold-500, #E65C1A);
  border-right: 3px solid var(--primary-gold-500, #E65C1A);
  border-radius: 4px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 4px rgba(15, 31, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.spec-sizing-item {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary, #4A5660);
  text-align: center;
}

.spec-sizing-label {
  color: var(--navy-900, #0F1F3A);
  font-weight: 600;
  margin-right: 0.35rem;
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.8rem;
}

.spec-sizing-val {
  color: var(--text-secondary, #4A5660);
}

/* 6. APPLICATION CARDS (Centered) */
.spec-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.spec-app-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  border-top: 2px solid var(--navy-700, #1E3A5F);
  padding: 1.15rem;
  border-radius: 3px;
  text-align: center;
}

.spec-app-card__title {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-900, #0F1F3A);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  text-align: center;
}

.spec-app-card__text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary, #4A5660);
  text-align: center;
}

/* 7. LOGISTICS FLOW & OPERATIONAL PHOTO (Centered) */
.spec-logistics-box {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  border-radius: 4px;
  text-align: center;
}

.spec-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.spec-logistics-item {
  padding: 0.85rem;
  background: #f8fafc;
  border-left: 3px solid var(--primary-gold-500, #E65C1A);
  border-radius: 2px;
  text-align: center;
}

.spec-logistics-item__title {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-900, #0F1F3A);
  margin-bottom: 0.25rem;
  text-align: center;
}

.spec-logistics-item__desc {
  font-size: 0.77rem;
  color: var(--text-secondary, #4A5660);
  line-height: 1.45;
  text-align: center;
}

.spec-logistics-photo {
  margin-top: 1.35rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light, #E2E8F0);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.spec-logistics-photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.spec-logistics-photo__caption {
  padding: 0.55rem 0.85rem;
  font-size: 0.74rem;
  color: var(--text-secondary, #4A5660);
  background: #f8fafc;
  border-top: 1px solid var(--border-light, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

/* Technical Guide Banner (Centered) */
.spec-guide-banner,
.spec-main-col > div:has(.spec-btn-secondary) {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.spec-guide-banner > div,
.spec-main-col > div:has(.spec-btn-secondary) > div {
  text-align: center !important;
  width: 100% !important;
}

.spec-guide-banner .spec-btn-secondary,
.spec-main-col > div:has(.spec-btn-secondary) .spec-btn-secondary {
  margin: 0.5rem auto 0 auto !important;
  display: inline-flex !important;
  text-align: center !important;
}

/* 8. SIDEBAR (Commercial RFQ Card - Centered) */
.spec-sidebar {
  position: relative;
}

.spec-sidebar__sticky {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-rfq-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  border-top: 3px solid var(--primary-gold-500, #E65C1A);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  text-align: center;
}

.spec-rfq-card__badge {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-gold-500, #E65C1A);
  letter-spacing: 0.12em;
  margin: 0 auto 0.35rem auto;
  display: table;
  text-align: center;
}

.spec-rfq-card__title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-900, #0F1F3A);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  text-align: center;
}

.spec-rfq-card__text,
.spec-rfq-card p {
  font-size: 0.8rem;
  color: var(--text-secondary, #4A5660);
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.spec-rfq-card > div {
  text-align: center;
}

.spec-rfq-card > div > div {
  text-align: center;
}

.spec-rfq-card .spec-btn-primary,
.spec-rfq-card .spec-btn-whatsapp {
  text-align: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.spec-sidebar-links {
  background: #ffffff;
  border: 1px solid var(--border-light, #E2E8F0);
  padding: 1.15rem;
  border-radius: 3px;
  text-align: center;
}

.spec-sidebar-links__title {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900, #0F1F3A);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light, #E5EAEE);
  padding-bottom: 0.3rem;
  text-align: center;
}

.spec-sidebar-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-sidebar-links__list a {
  color: var(--text-primary, #2F3A40);
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  border: 1px solid var(--border-light, #E5EAEE);
  border-radius: 2px;
  transition: all 0.2s;
}

.spec-sidebar-links__list a:hover {
  background: #ffffff;
  border-color: var(--primary-gold-500, #E65C1A);
  color: var(--primary-gold-600, #D45A15);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 992px) {
  .spec-hero__container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .spec-hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .spec-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }
  .spec-sidebar__sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Intentional centering for hero headers, breadcrumb, kicker & buttons on mobile */
  .spec-hero__content {
    text-align: center;
  }

  .spec-hero__breadcrumb {
    font-size: 0.6875rem;
    margin-left: auto;
    margin-right: auto;
  }

  .spec-hero__kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .spec-hero__title {
    font-size: 1.45rem;
    line-height: 1.22;
    margin-left: auto;
    margin-right: auto;
  }

  .spec-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .spec-hero__trust-list {
    justify-content: center;
  }

  .spec-hero__actions {
    justify-content: center;
  }

  /* Metric cards: Centered, balanced 2x2 presentation on mobile */
  .spec-metrics {
    padding: 1rem 0.75rem;
  }

  .spec-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .spec-metric-card {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.55rem;
  }

  .spec-metric-card__label {
    font-size: 0.625rem;
    margin-bottom: 0.2rem;
  }

  .spec-metric-card__val {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
  }

  .spec-metric-card__desc {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  /* Section headers & overlines: Centered on mobile */
  .spec-section-header {
    text-align: center;
    margin-bottom: 1.25rem;
  }

  .spec-section-kicker {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile section headings: locked with !important to defeat any global h2 rules */
  body.mineral-spec-page main h2.spec-section-title,
  body.mineral-spec-page .spec-section-title,
  main h2.spec-section-title,
  .spec-section-title {
    font-size: 1.25rem !important;
    line-height: 1.28 !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    letter-spacing: 0.02em !important;
  }

  .spec-content {
    padding: 1.75rem 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .spec-section-intro {
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-left: auto;
    margin-right: auto;
  }

  .spec-table-header::after {
    content: "Swipe table to view all 4 columns \2192";
    display: inline-block;
    font-family: var(--font-ui, 'Montserrat', sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--primary-gold-600, #D45A15);
    background: rgba(230, 92, 26, 0.08);
    border: 1px dashed rgba(230, 92, 26, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin: 0.35rem auto 0 auto;
    text-align: center;
  }

  .spec-table-wrap {
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .spec-table {
    width: 100%;
    min-width: 350px;
    font-size: 0.74rem;
    table-layout: auto;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.5rem 0.4rem;
    line-height: 1.35;
    white-space: normal;
  }

  .spec-table th {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.55rem 0.4rem;
    vertical-align: bottom;
  }

  .spec-table th:first-child,
  .spec-table td:first-child {
    padding-left: 0.55rem;
  }

  .spec-table th:last-child,
  .spec-table td:last-child {
    padding-right: 0.55rem;
  }

  /* Laboratory Testing: Header and Download SGS Report centered on mobile */
  .spec-table-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .spec-table-header > div {
    text-align: center;
    width: 100%;
  }

  .spec-download-btn {
    margin: 0.25rem auto 0 auto;
    display: inline-flex;
    justify-content: center;
  }

  .spec-sizing-box {
    padding: 1rem 1.15rem;
  }

  .spec-app-card__title {
    font-size: 0.75rem;
  }

  .spec-logistics-item__title {
    font-size: 0.75rem;
  }

  .spec-rfq-card__title {
    font-size: 0.98rem;
  }

  .spec-app-grid {
    grid-template-columns: 1fr;
  }

  .spec-app-card {
    text-align: center;
  }

  .spec-logistics-grid {
    grid-template-columns: 1fr;
  }

  .spec-logistics-box,
  .spec-logistics-item {
    text-align: center;
  }

  .spec-rfq-card {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .spec-content {
    padding: 1.25rem 0.75rem;
  }

  body.mineral-spec-page main h2.spec-section-title,
  body.mineral-spec-page .spec-section-title,
  main h2.spec-section-title,
  .spec-section-title {
    font-size: 1.15rem !important;
    line-height: 1.28 !important;
    text-align: center !important;
  }

  .spec-metrics__grid {
    grid-template-columns: 1fr;
  }

  .spec-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .spec-btn-primary,
  .spec-btn-whatsapp {
    width: 100%;
  }

  .spec-table {
    min-width: 330px;
    font-size: 0.70rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.45rem 0.32rem;
  }

  .spec-table th {
    font-size: 0.58rem;
    line-height: 1.18;
  }

  .spec-table th:first-child,
  .spec-table td:first-child {
    padding-left: 0.45rem;
  }

  .spec-table th:last-child,
  .spec-table td:last-child {
    padding-right: 0.45rem;
  }
}
