/* ============================================================
   Páginas técnicas — Tubos Flexíveis SHIDRAU CAST
   ============================================================ */
.tec-hero {
  background: linear-gradient(135deg, var(--ink, #04091a), #0a1428);
  color: #fff;
  padding: 130px 0 60px;
  border-bottom: 3px solid var(--blue, #dc1f1f);
}
.tec-hero .sc-eyebrow { color: #fca5a5; }
.tec-hero h1 {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 10px 0 0;
}
.tec-breadcrumb {
  font-size: .82rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.tec-breadcrumb a { color: #cbd5e1; text-decoration: none; }
.tec-breadcrumb a:hover { color: #fff; }

.tec-body { padding: 56px 0 72px; }
.tec-body .container { max-width: 860px; }
.tec-body h2 {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink, #04091a);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.tec-body h3 {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink, #04091a);
  margin: 28px 0 10px;
}
.tec-body p { font-size: .98rem; line-height: 1.75; color: #334155; margin-bottom: 16px; }
.tec-body ul, .tec-body ol { font-size: .98rem; line-height: 1.8; color: #334155; margin-bottom: 18px; padding-left: 22px; }
.tec-body li { margin-bottom: 6px; }
.tec-body strong { color: var(--ink, #04091a); }

/* caixa de regras/destaque */
.tec-rules {
  background: #f8fafc;
  border-left: 4px solid var(--blue, #dc1f1f);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 24px 0;
}
.tec-rules ol { margin: 0; }

/* fórmula em destaque */
.tec-formula {
  background: var(--ink, #04091a);
  color: #e8eef7;
  font-family: "IBM Plex Mono", monospace;
  font-size: .95rem;
  padding: 16px 22px;
  border-radius: 8px;
  margin: 18px 0;
  overflow-x: auto;
}
.tec-formula .var { color: #fca5a5; font-weight: 600; }

/* placeholder para diagramas futuros */
.tec-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e9eef4 12px, #e9eef4 24px);
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  color: #64748b;
  font-size: .85rem;
  text-align: center;
  margin: 24px 0;
  padding: 20px;
}

/* tabela técnica */
.tec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.tec-table th, .tec-table td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.tec-table th { background: var(--ink, #04091a); color: #fff; font-weight: 600; }
.tec-table tr:nth-child(even) td { background: #f8fafc; }
.tec-table .code { font-family: "IBM Plex Mono", monospace; font-weight: 600; }

/* navegação entre páginas técnicas */
.tec-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.tec-nav-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tec-nav-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(4,9,26,.1); border-color: var(--blue, #dc1f1f); }
.tec-nav-card__tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue, #dc1f1f); }
.tec-nav-card__title { font-family: var(--font-display, "Manrope", sans-serif); font-weight: 700; font-size: .98rem; color: var(--ink, #04091a); margin-top: 6px; }

.tec-cta-box {
  background: linear-gradient(135deg, var(--blue, #dc1f1f), #b91c1c);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 48px 0 0;
}
.tec-cta-box h3 { color: #fff; font-family: var(--font-display, "Manrope", sans-serif); font-weight: 700; margin-bottom: 10px; }
.tec-cta-box p { color: rgba(255,255,255,.9); margin-bottom: 20px; }
.tec-cta-box .btn { background: #fff; color: var(--blue, #dc1f1f); font-weight: 700; padding: 12px 28px; border-radius: 100px; text-decoration: none; display: inline-block; }

/* figuras/diagramas técnicos */
.tec-figure {
  margin: 24px 0;
  text-align: center;
}
.tec-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(4,9,26,.08);
}
.tec-figure figcaption {
  font-size: .82rem;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
}

/* ===== Tabela principal de medidas do tubo ===== */
.tabela-tubo-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.tabela-tubo {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: .8rem;
  font-family: "IBM Plex Mono", monospace;
}
.tabela-tubo th, .tabela-tubo td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}
.tabela-tubo thead th {
  background: var(--ink, #04091a);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .72rem;
  position: sticky;
  top: 0;
}
.tabela-tubo .nom {
  background: var(--blue, #dc1f1f);
  color: #fff;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.tabela-tubo tbody tr:hover td { background: #fef2f2; }
.tabela-tubo td[rowspan] { background: #f8fafc; font-weight: 500; }
