/* ═══════════════════════════════════════════════════════════════
   Normativa Reguladora — /auditoria/hacerse-auditor-de-cuentas/formacion-teorica/normativa-reguladora
   Figma node 22889:76456
   ═══════════════════════════════════════════════════════════════ */

/* ── Hide Drupal default page title block ── */
#block-icac-theme-page-title {
  display: none !important;
}

/* ── Hero Section ── */
.nr-hero {
  position: relative;
  width: 100%;
  padding: 40px 0 20px 0;
  background: #ffffff;
}

.nr-hero__container {
  position: relative;
  z-index: 2;
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nr-hero__content {
  width: 100%;
  max-width: 1152px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.nr-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nr-breadcrumb__link,
.nr-breadcrumb__current {
  color: #525252;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.nr-breadcrumb__link:hover {
  color: #0a0a0a;
  text-decoration: underline;
}

.nr-breadcrumb__current {
  color: #0a0a0a;
  font-weight: 500;
}

.nr-breadcrumb__sep {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nr-breadcrumb__sep path {
  stroke: #525252;
}

.nr-hero__title {
  width: 100%;
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
}

/* ── Table Section: y=310 ── */
.nr-table-section {
  width: 100%;
  background: #ffffff;
  padding-bottom: 64px;
}

.nr-table-section__container {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

/* ── Table ── */
.nr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.nr-table thead {
  background: #f8fafc;
}

.nr-table__header {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #0a0a0a;
  border-bottom: 1px solid #e5e5e5;
}

.nr-table__header--normativa {
  width: 1086px;
  max-width: calc(100% - 194px);
}

.nr-table__header--acciones {
  width: 194px;
  text-align: center;
}

.nr-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.nr-table tbody tr:last-child {
  border-bottom: none;
}

.nr-table__cell {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0a0a0a;
  vertical-align: middle;
}

.nr-table__cell--acciones {
  text-align: center;
  padding: 12px 24px;
}

/* ── Download Button ── */
.nr-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #525252;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nr-download-btn:hover {
  background: #f8fafc;
  border-color: #d4d4d4;
  color: #0a0a0a;
}

.nr-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nr-table__header--normativa,
  .nr-table__cell:first-child {
    width: auto;
    max-width: none;
  }

  .nr-table__header--acciones,
  .nr-table__cell--acciones {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .nr-hero {
    height: auto;
    min-height: 200px;
    padding: 40px 0;
  }

  .nr-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .nr-table-section {
    padding-bottom: 40px;
  }

  .nr-table__header,
  .nr-table__cell {
    padding: 12px 16px;
    font-size: 13px;
  }

  .nr-download-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .nr-download-btn span {
    display: none;
  }
}

/* ===== Action Buttons in Hero (AUD_046) ===== */
.normativa-btn-edit,
.normativa-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.normativa-btn-edit {
  background-color: #b91c1c !important;
  color: #fafafa !important;
}

.normativa-btn-edit:hover {
  background-color: #991b1b !important;
}

.normativa-btn-add {
  background-color: #1e3a8a !important;
  color: #fafafa !important;
}

.normativa-btn-add:hover {
  background-color: #1e40af !important;
}
