.standards-ethics-page {
  --ethics-navy: #172f4c;
  --ethics-blue: #286aa6;
  --ethics-blue-dark: #215680;
  --ethics-blue-soft: #e9f2fa;
  --ethics-red: #b33d4c;
  --ethics-red-soft: #fbf0f2;
  --ethics-gold: #aa7b2d;
  --ethics-gold-soft: #fff8e8;
  --ethics-green: #24745f;
  --ethics-green-soft: #edf8f4;
  --ethics-ink: #293f55;
  --ethics-muted: #687c8f;
  --ethics-line: #d8e3ec;
  color: var(--ethics-ink);
}

.standards-ethics-page--logged-in {
  background: transparent !important;
  padding-bottom: 2rem;
}

.standards-ethics-hero,
.standards-ethics-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 1300px;
}

.standards-ethics-hero,
.standards-ethics-public-hero__content {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(170, 123, 45, 0.13), transparent 29%),
    linear-gradient(135deg, #f9fbfd 0%, #edf4fa 100%);
  border: 1px solid var(--ethics-line);
  border-top: 5px solid var(--ethics-red);
  box-shadow: 0 14px 32px rgba(41, 63, 85, 0.09);
  display: grid;
  gap: 1.3rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.standards-ethics-hero::after,
.standards-ethics-public-hero__content::after {
  border: 1px solid rgba(40, 106, 166, 0.08);
  border-radius: 50%;
  content: "";
  height: 240px;
  pointer-events: none;
  position: absolute;
  right: -75px;
  top: -95px;
  width: 240px;
}

.standards-ethics-hero {
  border-radius: 0 0 24px 24px;
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
}

.standards-ethics-hero__icon {
  align-items: center;
  background: var(--ethics-blue-soft);
  border-radius: 18px;
  color: var(--ethics-blue);
  display: flex;
  font-size: 1.7rem;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.standards-ethics-eyebrow {
  color: var(--ethics-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.standards-ethics-hero h1,
.standards-ethics-public-hero h1 {
  color: var(--ethics-navy);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.standards-ethics-hero__subtitle {
  color: var(--ethics-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0.4rem 0 0;
}

.standards-ethics-hero__seal {
  align-items: center;
  background: linear-gradient(145deg, #fff, #f7f2e8);
  border: 1px solid rgba(170, 123, 45, 0.38);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(41, 63, 85, 0.12);
  color: var(--ethics-navy);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  min-width: 190px;
  padding: 0.9rem 1.15rem;
  position: relative;
  z-index: 1;
}

.standards-ethics-hero__seal span {
  color: var(--ethics-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standards-ethics-hero__seal i {
  color: var(--ethics-gold);
  font-size: 1.45rem;
  grid-row: 1 / span 2;
  justify-self: end;
  margin-left: 1rem;
}

.standards-ethics-hero__seal strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.standards-ethics-page--logged-in > .section-tabs {
  padding-bottom: 1rem;
  padding-top: 0;
}

.standards-ethics-page--logged-in > .section-tabs > .container-new,
.standards-ethics-page--public > .section-tabs > .container-new {
  max-width: 1300px;
}

.standards-ethics-page .section-tabs .tab-content {
  padding-top: 1.5rem;
}

.standards-ethics-page .section-tabs .tab-pane > h4:first-child {
  color: var(--ethics-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.standards-ethics-page .section-tabs .table-wrap,
.standards-ethics-page .section-tabs .tab-pane > div:not(.standards-ethics-content) {
  background: #fff;
  border: 1px solid var(--ethics-line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(41, 63, 85, 0.07);
  overflow: hidden;
  padding: 1rem 1.25rem 0;
}

.standards-ethics-page .section-tabs .table {
  background: #fff;
}

.standards-ethics-page .section-tabs .table tr {
  background: #fff !important;
  flex-wrap: nowrap;
}

.standards-ethics-page .section-tabs .table thead tr {
  background: #f3f7fa !important;
}

.standards-ethics-page .section-tabs .table th,
.standards-ethics-page .section-tabs .table td {
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.standards-ethics-page .section-tabs .table th {
  color: #526a80;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-bottom: 0.8rem;
  padding-top: 0.8rem;
  text-transform: uppercase;
}

.standards-ethics-page .section-tabs .table tbody tr:hover,
.standards-ethics-page .section-tabs .table tbody tr:hover td {
  background: #f8fbfd !important;
}

.standards-ethics-page .section-tabs .table td,
.standards-ethics-page .section-tabs .table tbody th {
  background: inherit;
}

.standards-ethics-content {
  display: grid;
  gap: 1.25rem;
}

.standards-ethics-page .standards-ethics-content h2,
.standards-ethics-page .standards-ethics-content h3 {
  color: var(--ethics-navy);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.standards-ethics-page .standards-ethics-content h2 {
  font-size: 1.55rem;
}

.standards-ethics-page .standards-ethics-content h3 {
  font-size: 1.02rem;
}

.standards-ethics-mission,
.standards-ethics-panel,
.standards-ethics-path {
  background: #fff;
  border: 1px solid var(--ethics-line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(41, 63, 85, 0.07);
}

.standards-ethics-mission {
  align-items: center;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.11), transparent 32%),
    linear-gradient(135deg, var(--ethics-navy), #285f91);
  color: #fff;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.8rem 1.95rem;
}

.standards-ethics-mission__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  display: flex;
  font-size: 1.55rem;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.standards-ethics-mission .standards-ethics-eyebrow {
  color: #c8e1f7;
}

.standards-ethics-page .standards-ethics-mission h2 {
  color: #fff;
  margin: 0 0 0.45rem;
}

.standards-ethics-mission p:last-child {
  color: #edf5fb;
  line-height: 1.7;
  margin: 0;
  max-width: 1040px;
}

.standards-ethics-panel,
.standards-ethics-path {
  padding: 1.75rem 1.9rem;
}

.standards-ethics-panel__header {
  margin-bottom: 1.25rem;
  max-width: 880px;
}

.standards-ethics-panel__header h2 {
  margin: 0 0 0.45rem;
}

.standards-ethics-panel__header > p:last-child {
  color: var(--ethics-muted);
  line-height: 1.65;
  margin: 0;
}

.standards-ethics-values {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standards-ethics-value {
  background: #f8fafc;
  border: 1px solid var(--ethics-line);
  border-radius: 16px;
  min-height: 100%;
  padding: 1.2rem;
}

.standards-ethics-value__icon {
  align-items: center;
  background: var(--ethics-blue-soft);
  border-radius: 13px;
  color: var(--ethics-blue);
  display: flex;
  font-size: 1.05rem;
  height: 42px;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 42px;
}

.standards-ethics-value:nth-child(2) .standards-ethics-value__icon {
  background: var(--ethics-green-soft);
  color: var(--ethics-green);
}

.standards-ethics-value:nth-child(3) .standards-ethics-value__icon {
  background: var(--ethics-gold-soft);
  color: var(--ethics-gold);
}

.standards-ethics-value:nth-child(4) .standards-ethics-value__icon {
  background: var(--ethics-red-soft);
  color: var(--ethics-red);
}

.standards-ethics-value h3 {
  margin: 0 0 0.35rem;
}

.standards-ethics-value p {
  color: var(--ethics-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.standards-ethics-path {
  background:
    linear-gradient(90deg, rgba(179, 61, 76, 0.04), transparent 30%),
    #fff;
}

.standards-ethics-path__steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standards-ethics-step {
  padding: 0.25rem 1.2rem 0.2rem;
  position: relative;
}

.standards-ethics-step + .standards-ethics-step {
  border-left: 1px solid var(--ethics-line);
}

.standards-ethics-step span {
  align-items: center;
  background: var(--ethics-navy);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 31px;
}

.standards-ethics-step h3 {
  margin: 0 0 0.35rem;
}

.standards-ethics-step p {
  color: var(--ethics-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.standards-ethics-resources {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.standards-ethics-resource {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--ethics-line);
  border-radius: 15px;
  color: var(--ethics-ink);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1rem 1.05rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.standards-ethics-resource:hover,
.standards-ethics-resource:focus {
  border-color: rgba(40, 106, 166, 0.55);
  box-shadow: 0 10px 22px rgba(41, 63, 85, 0.1);
  color: var(--ethics-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.standards-ethics-resource__icon {
  align-items: center;
  background: var(--ethics-blue-soft);
  border-radius: 12px;
  color: var(--ethics-blue);
  display: flex;
  font-size: 1rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.standards-ethics-resource strong {
  color: var(--ethics-navy);
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.12rem;
}

.standards-ethics-resource small {
  color: var(--ethics-muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
}

.standards-ethics-resource > i {
  color: var(--ethics-blue);
  font-size: 0.85rem;
}

.standards-ethics-note {
  align-items: center;
  background: var(--ethics-gold-soft);
  border: 1px solid rgba(170, 123, 45, 0.3);
  border-radius: 17px;
  color: #644c25;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.15rem 1.25rem;
}

.standards-ethics-note i {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  color: var(--ethics-gold);
  display: flex;
  font-size: 1.05rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.standards-ethics-note p {
  line-height: 1.6;
  margin: 0;
}

.standards-ethics-content__data-sources {
  display: none !important;
}

.standards-ethics-page--public > .section-page-title {
  background: #f5f8fb;
  padding-bottom: 1.6rem;
}

.standards-ethics-page--public .section-page-title .breadcrumb {
  margin-bottom: 1.25rem;
}

.standards-ethics-public-hero__content {
  border-radius: 24px;
  margin: 0 auto;
  max-width: 1300px;
  padding: 1.65rem 1.85rem;
  text-align: left;
}

.standards-ethics-page--public > .section-tabs {
  padding-top: 1.5rem;
}

@media (max-width: 1050px) {
  .standards-ethics-values,
  .standards-ethics-path__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standards-ethics-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ethics-line);
    margin-top: 1rem;
    padding-top: 1.25rem;
  }

  .standards-ethics-step:nth-child(4) {
    border-top: 1px solid var(--ethics-line);
    margin-top: 1rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 767px) {
  .standards-ethics-hero,
  .standards-ethics-public-hero__content {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.35rem;
  }

  .standards-ethics-hero__icon {
    border-radius: 15px;
    height: 56px;
    width: 56px;
  }

  .standards-ethics-hero__seal {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    min-width: 0;
    width: 100%;
  }

  .standards-ethics-mission {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .standards-ethics-mission__icon {
    height: 54px;
    width: 54px;
  }

  .standards-ethics-panel,
  .standards-ethics-path {
    padding: 1.35rem;
  }

  .standards-ethics-resources {
    grid-template-columns: 1fr;
  }

  .standards-ethics-page .section-tabs .table-wrap,
  .standards-ethics-page .section-tabs .tab-pane > div:not(.standards-ethics-content) {
    overflow-x: auto;
    padding: 0.7rem 0.8rem 0;
  }
}

@media (max-width: 520px) {
  .standards-ethics-hero,
  .standards-ethics-public-hero__content {
    grid-template-columns: 1fr;
  }

  .standards-ethics-hero__icon {
    margin-bottom: 0.15rem;
  }

  .standards-ethics-values,
  .standards-ethics-path__steps {
    grid-template-columns: 1fr;
  }

  .standards-ethics-step {
    padding: 1rem 0 0;
  }

  .standards-ethics-step:first-child {
    padding-top: 0;
  }

  .standards-ethics-step + .standards-ethics-step,
  .standards-ethics-step:nth-child(3),
  .standards-ethics-step:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--ethics-line);
    margin-top: 1rem;
    padding-top: 1.15rem;
  }

  .standards-ethics-resource {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .standards-ethics-resource > i {
    display: none;
  }
}
