/* ============================================
   FETALMED — Calculadora Tamanho do Bebê CSS
   ============================================ */

/* === RESULTADO === */
.tam-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tam-detail {
  padding: var(--space-md) var(--space-lg);
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.tam-detail:last-child { border-right: none; }

.tam-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.tam-detail-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-strong);
}

/* === TABELA === */
.tam-tabela-card {
  padding: 0;
  overflow: hidden;
}

.tam-tabela-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg, #f8fafc);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-mid);
}

/* === SELECT (reutiliza) === */
.pf-select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-weight: 300;
  color: var(--color-text-strong);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white, #fff);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}

.pf-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}

/* === REFERENCE (reuse) === */
.tabref-reference {
  padding: 16px 20px;
  background: #f8fafc;
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  margin: 24px 0;
}
.tabref-reference-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.tabref-reference-text {
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.6;
}
.tabref-reference-text em { font-style: italic; }
.tabref-reference-text ol li { margin-bottom: 6px; }

/* Table styles (reuse tabref) */
.tabref-table-wrapper { overflow-x: auto; }
.tabref-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tabref-table.compact th, .tabref-table.compact td { text-align: center; }
.tabref-table thead th { font-size: 12px; font-weight: 500; color: var(--color-text-light); padding: 8px 14px; text-align: center; border-bottom: 0.5px solid var(--color-border); background: none; border: none; border-bottom: 0.5px solid var(--color-border); }
.tabref-table tbody td { padding: 5px 14px; text-align: center; color: var(--color-text-mid); font-size: 12px; border: none; }
.tabref-table tbody tr:nth-child(even) { background: #f8fafc; }
.tabref-table .p50 { font-weight: 500; color: #0e7490; }

/* === CONTEÚDO TEXTUAL === */
.tam-content {
  margin-top: var(--space-2xl);
}
.tam-content .ct-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}
.tam-content .ct-section:last-child { border-bottom: none; padding-bottom: 0; }
.tam-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--color-text-strong); margin: 0 0 var(--space-md); line-height: 1.35; }
.tam-content p { font-size: 15px; line-height: 1.8; color: var(--color-text-mid); margin-bottom: var(--space-md); }
.tam-content p:last-child { margin-bottom: 0; }
.tam-content a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.tam-content a:hover { text-decoration: underline; }

/* === RESPONSIVO === */
@media (max-width: 480px) {
  .tam-details { grid-template-columns: 1fr; }
  .tam-detail { border-right: none; border-bottom: 1px solid var(--color-border); text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .tam-detail:last-child { border-bottom: none; }
}
