/* //#91142 - Standalone Ethics Portal styles; Font Awesome icons and the existing CMS banner remain supported. */
#ethicsPage {
  --eh-teal: #1a7f7a;
  --eh-navy: #0c2d6b;
  --eh-navy-deep: #08214f;
  --eh-ink: #1d1d1d;
  --eh-muted: #5a6b78;
  --eh-line: #e3e7eb;
  --eh-card: #ffffff;
  color: var(--eh-ink);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

/* //#91142 - Use the website's existing Nunito font for all portal copy and controls. */
#ethicsPage :where(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label, li, dt, dd, th, td, dialog),
.introWrapper .introText,
.introWrapper .introText :where(h1, h2, h3, h4, h5, h6, p, a) {
  font-family: "Nunito", Arial, sans-serif;
}

/* //#91142 - Provide the portal's element defaults independently of framework styles. */
#ethicsPage *,
#ethicsPage *::before,
#ethicsPage *::after {
  box-sizing: border-box;
}
#ethicsPage h1,
#ethicsPage h2,
#ethicsPage h3,
#ethicsPage h4 {
  color: inherit;
  font-weight: 500;
  line-height: 1.2;
  margin: 20px 0 10px;
  text-align: left;
}
#ethicsPage h1 { font-size: 30px; }
#ethicsPage h2 { font-size: 24px; }
#ethicsPage h3 { font-size: 20px; }
#ethicsPage h4 { font-size: 18px; }
#ethicsPage p { margin: 0 0 10px; }
#ethicsPage ul,
#ethicsPage ol {
  margin: 0 0 10px;
  padding-left: 40px;
}
#ethicsPage a {
  color: var(--eh-teal);
  text-decoration: none;
}
#ethicsPage a:hover { text-decoration: underline; }
#ethicsPage button {
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}
#ethicsPage img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
#ethicsPage iframe {
  display: block;
  max-width: 100%;
}
#ethicsPage a:focus-visible,
#ethicsPage button:focus-visible,
#ethicsPage .eh-dialog:focus-visible {
  outline: 3px solid var(--eh-navy);
  outline-offset: 4px;
}
#ethicsPage [hidden] { display: none !important; }

/* //#91142 - Replace framework containers and columns with native responsive grids. */
#ethicsPage .eh-shell {
  width: 90%;
  margin: 0 auto;
  padding: 56px 15px 80px;
}
#ethicsPage .eh-column,
#ethicsPage .eh-aie-copy,
#ethicsPage .eh-resource-content {
  min-width: 0;
}
#ethicsPage .eh-welcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
#ethicsPage .eh-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 30px;
  align-items: stretch;
}

/* //#91142 - Preserve the site's teal button design with portal-owned classes. */
#ethicsPage .eh-button {
  display: inline-block;
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 14px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42857143;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
#ethicsPage .eh-button-primary,
#ethicsPage .eh-button-default {
  background: #0b8383;
  color: #fff;
}
#ethicsPage .eh-button-primary:hover,
#ethicsPage .eh-button-default:hover {
  background: #086666;
  color: #fff;
  text-decoration: none;
}
#ethicsPage .eh-button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* //#91142 - Preserve the introduction and the responsive 16:9 video treatment. */
#ethicsPage .eh-intro {
  padding-bottom: 32px;
  margin-bottom: 40px;
}
#ethicsPage .eh-intro h2 {
  color: var(--eh-teal);
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
#ethicsPage .eh-intro p {
  font-size: 16px;
  margin: 0 0 14px;
  color: #2d3640;
}
#ethicsPage .eh-intro-copy > p:first-child { margin-top: -4px; }
#ethicsPage .eh-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}
#ethicsPage .eh-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* //#91142 - Preserve the featured Code of Conduct panel and its decorative seal. */
#ethicsPage .eh-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: #0b8383;
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 44px;
  text-decoration: none;
}
#ethicsPage .eh-featured:hover {
  color: #fff;
  text-decoration: none;
}
#ethicsPage .eh-featured-text { padding: 28px 32px; }
#ethicsPage .eh-featured-text h3 {
  font-weight: 400;
  margin: 0 0 10px;
  color: #fff;
}
#ethicsPage .eh-featured-text p {
  font-size: 16px;
  color: #d8e2eb;
  margin: 0 0 18px;
}
#ethicsPage .eh-featured-text .eh-button { border: 2px solid #fff; }
#ethicsPage .eh-featured-art {
  background: #0b8383;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#ethicsPage .eh-seal {
  width: 130px;
  height: 130px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}
#ethicsPage .eh-seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

/* //#91142 - Keep section titles and conduct cards aligned with the portal content. */
#ethicsPage .eh-section { margin-bottom: 32px; }
#ethicsPage .eh-section-title {
  color: var(--eh-teal);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
#ethicsPage .eh-section-lead {
  color: var(--eh-muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 720px;
}
#ethicsPage .eh-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  background: var(--eh-card);
  border: 1px solid var(--eh-line);
  border-left: 4px solid var(--eh-teal);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
}
#ethicsPage .eh-card:hover,
#ethicsPage .eh-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 45, 107, 0.08);
  border-left-color: var(--eh-navy);
  text-decoration: none;
  color: inherit;
}
#ethicsPage .eh-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
#ethicsPage .eh-icon.teal { background: #e1f0ee; color: var(--eh-teal); }
#ethicsPage .eh-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--eh-ink);
  line-height: 1.3;
}
#ethicsPage .eh-card-blurb {
  font-size: 16px;
  color: var(--eh-muted);
  margin: 0;
  line-height: 1.5;
}

/* //#91142 - Lay out the learning carousel without framework rows or columns. */
#ethicsPage .learning-carousel {
  max-width: 100%;
  margin: 0;
  padding: 8px 0 12px;
  text-align: left;
  position: relative;
}
#ethicsPage .learning-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 30px;
  align-items: stretch;
  min-height: 320px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#ethicsPage .learning-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  text-align: left;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
#ethicsPage .learning-item:hover { transform: scale(1.03); }
#ethicsPage .learning-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
}
#ethicsPage .learning-image-container {
  position: relative;
  width: 100%;
}
#ethicsPage .learning-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: block;
}
#ethicsPage .pr-tag {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 10;
  background: #fff;
  padding: 4px 8px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
#ethicsPage .pr-tag img {
  height: 22px;
  width: auto;
  display: block;
}
#ethicsPage .learning-badges {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(100% - 16px);
  padding: 10px 22px;
  background-color: rgb(46, 110, 207);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  white-space: nowrap;
  z-index: 15;
}
#ethicsPage .learning-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
#ethicsPage .learning-badge em { font-size: 16px; }
#ethicsPage .learning-text-container {
  background-color: #efefef;
  width: 100%;
  flex: 1;
  padding: 50px 20px 32px;
  border-radius: 0 0 8px 8px;
}
#ethicsPage .learning-title {
  margin: 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  text-align: left;
  width: 100%;
}
#ethicsPage .learning-item p.learning-description {
  margin: 0;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  text-align: left;
  width: 100%;
}
#ethicsPage .learning-link:hover,
#ethicsPage .learning-link:focus-visible {
  text-decoration: none;
  color: inherit;
}
#ethicsPage .learning-link:hover .learning-title,
#ethicsPage .learning-link:focus-visible .learning-title {
  color: #0b8383;
}

/* //#91142 - Style native carousel controls, active dots and the existing slide/fade states. */
#ethicsPage .learning-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
#ethicsPage .learning-nav-btn {
  appearance: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #0b8383;
  padding: 0;
  background: transparent;
  color: #0b8383;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ethicsPage .learning-nav-btn:hover,
#ethicsPage .learning-nav-btn:focus-visible {
  background: #0b8383;
  color: #fff;
}
#ethicsPage .learning-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
#ethicsPage .learning-dot {
  appearance: none;
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#ethicsPage .learning-dot.active { background: #0b8383; }
#ethicsPage .learning-content.slide-out-left { opacity: 0; transform: translateX(-50px); }
#ethicsPage .learning-content.slide-out-right { opacity: 0; transform: translateX(50px); }
#ethicsPage .learning-content.slide-in-left { opacity: 0; transform: translateX(50px); }
#ethicsPage .learning-content.slide-in-right { opacity: 0; transform: translateX(-50px); }
#ethicsPage .learning-content.eh-no-transition { transition: none !important; }

/* //#91142 - Preserve the navy requirements band and its decorative artwork. */
#ethicsPage .eh-nextsteps {
  background: linear-gradient(135deg, var(--eh-navy) 0%, var(--eh-navy-deep) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 56px;
}
#ethicsPage .eh-nextsteps-deco-1,
#ethicsPage .eh-nextsteps-deco-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#ethicsPage .eh-nextsteps-deco-1 {
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}
#ethicsPage .eh-nextsteps-deco-2 {
  top: -10px;
  right: -10px;
  width: 170px;
  height: 170px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}
#ethicsPage .eh-nextsteps-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
#ethicsPage .eh-nextsteps h2 {
  font-weight: 400;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.2;
}
#ethicsPage .eh-nextsteps p {
  font-size: 16px;
  color: #d8e2eb;
  margin: 0;
  max-width: 460px;
}
#ethicsPage .eh-nextsteps-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

/* //#91142 - Keep the transferred resources border-free, left-aligned and clear of their images. */
#ethicsPage .eh-resource-section {
  padding: 24px 0;
  text-align: left;
  margin-bottom: 32px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}
#ethicsPage .eh-resource-section::after {
  content: "";
  display: table;
  clear: both;
}
#ethicsPage .eh-resource-section p,
#ethicsPage .eh-resource-section li {
  font-size: 16px;
  line-height: 1.65;
}
#ethicsPage .eh-resource-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}
#ethicsPage .eh-resource-image {
  float: right;
  width: 30%;
  max-width: 240px;
  height: auto;
  margin: 0 0 20px 24px;
}
#ethicsPage .eh-resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}
#ethicsPage .eh-resource-actions .eh-button { white-space: normal; }
/* //#91142 - Temporarily hide the AIE video and let its text fill the content width. */
#ethicsPage .eh-aie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
#ethicsPage .eh-aie-layout .eh-video-wrapper {
  display: none;
}

/* //#91142 - Present the transferred pricing information in native modal dialogs. */
#ethicsPage .eh-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  height: auto;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #fff;
  color: var(--eh-ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  overflow: auto;
  overscroll-behavior: contain;
}
#ethicsPage .eh-dialog[open] { display: block; }
#ethicsPage .eh-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
#ethicsPage .eh-dialog-content { min-width: 0; }
#ethicsPage .eh-dialog-body { padding: 24px; }
#ethicsPage .eh-dialog-body > h2:first-child { margin-top: 0; }
#ethicsPage .eh-dialog-body .eh-grid-two {
  gap: 24px;
  align-items: start;
}
#ethicsPage .eh-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--eh-line);
}
#ethicsPage .eh-contact-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
}

/* //#91142 - Lock background scrolling only while the portal has opened a native dialog. */
html.eh-dialog-open { overflow: hidden; }

/* //#91142 - Keep the carousel's live status available to assistive technology. */
#ethicsPage .eh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* //#91142 - Preserve the existing CMS banner styles outside the portal renderer. */
.introWrapper {
  background-image: url('/cisiweb2/image/ethics-hub/IMbg2.jpg');
  background-position: center center;
}
.introText {
  width: 99%;
  padding: 30px 100px;
  display: inline-block;
  vertical-align: middle;
}
.introWrapper .container:after { width: 170px; }

/* //#91142 - Restore two-column information layouts and three-card learning pages at their original breakpoints. */
@media (min-width: 768px) {
  #ethicsPage .eh-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  #ethicsPage .eh-welcome-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ethicsPage .learning-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* //#91142 - Retain the site's responsive button proportions on larger desktop screens. */
@media (min-width: 1200px) {
  #ethicsPage .eh-button { font-size: 18px; padding: 12px 26px; }
}
@media (min-width: 1600px) {
  #ethicsPage .eh-button { font-size: 20px; padding: 16px 30px; }
}

/* //#91142 - Stack AIE content and limit smaller-screen videos to 405px high at their original proportions. */
@media (max-width: 1280px) {
  #ethicsPage .eh-aie-layout { grid-template-columns: minmax(0, 1fr); }
  #ethicsPage .eh-video-wrapper {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    height: auto;
    padding-bottom: 0;
  }
}

/* //#91142 - Preserve the compact featured panels and page spacing on smaller screens. */
@media (max-width: 960px) {
  #ethicsPage .eh-shell { padding-top: 40px; padding-bottom: 60px; }
  #ethicsPage .eh-featured { grid-template-columns: minmax(0, 1fr); }
  #ethicsPage .eh-featured-art { padding: 20px; }
  #ethicsPage .eh-nextsteps-inner { grid-template-columns: minmax(0, 1fr); }
  #ethicsPage .eh-nextsteps-actions { min-width: 0; }
}

/* //#91142 - Stack resource images and actions while retaining mobile dialog scrolling. */
@media (max-width: 767px) {
  #ethicsPage .eh-resource-image {
    float: none;
    display: block;
    width: 240px;
    max-width: 100%;
    margin: 0 0 20px;
  }
  #ethicsPage .eh-resource-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #ethicsPage .eh-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  #ethicsPage .eh-dialog-body { padding: 20px; }
  #ethicsPage .eh-dialog-footer { padding: 15px 20px; }
}

/* //#91142 - Keep the learning-card badges within narrow phone screens. */
@media (max-width: 480px) {
  #ethicsPage .learning-badges { gap: 16px; padding: 10px 14px; font-size: 16px; }
}

/* //#91142 - Honor reduced motion preferences without hiding carousel content. */
@media (prefers-reduced-motion: reduce) {
  #ethicsPage .learning-content,
  #ethicsPage .learning-item,
  #ethicsPage .eh-card,
  #ethicsPage .eh-button,
  #ethicsPage .learning-nav-btn,
  #ethicsPage .learning-dot {
    transition: none;
  }
  #ethicsPage .learning-content.slide-out-left,
  #ethicsPage .learning-content.slide-out-right,
  #ethicsPage .learning-content.slide-in-left,
  #ethicsPage .learning-content.slide-in-right {
    opacity: 1;
    transform: none;
  }
  #ethicsPage .learning-item:hover,
  #ethicsPage .eh-card:hover,
  #ethicsPage .eh-card:focus-visible {
    transform: none;
  }
}
