/* ── Universal Content ── */

.universal-content {
  position: relative;
}

.universal-content__overlay {
  position: absolute;
  inset: 0;
  background: var(--gs-blue);
  pointer-events: none;
}

.universal-content__inner {
  position: relative;
  z-index: 1;
}

/* Width variants */
.universal-content--width-content .universal-content__inner { max-width: 760px; }
.universal-content--width-medium  .universal-content__inner { max-width: 900px; }
.universal-content--width-large   .universal-content__inner { max-width: 1000px; }
.universal-content--width-wide    .universal-content__inner { max-width: 1200px; }
.universal-content--width-full    .universal-content__inner { max-width: none; }

/* Alignment */
.universal-content--align-center .universal-content__inner { margin-inline: auto; text-align: center; }
.universal-content--align-center .gs-btn-group              { justify-content: center; }

/* Spacing */
.universal-content__icon-logo { margin-bottom: 20px; line-height: 0; }
.universal-content__icon-logo img {
  max-width: 150px;
  width: auto;
  height: auto;
  display: inline-block;
}
.universal-content .gs-eyebrow    { display: inline-block; margin-bottom: 28px; }
.universal-content .gs-heading-lg { margin-bottom: 16px; }
.universal-content__body          { margin-bottom: 28px; }

.universal-content__body p { margin-bottom: 20px; }

/* Tables — simple full-width grid with black borders. */
.universal-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
.universal-content__body table th,
.universal-content__body table td {
  border: 1px solid #000;
  padding: 15px;
  text-align: left;
  vertical-align: top;
}
.universal-content__body table th { font-weight: 700; }

.universal-content__body ul { margin-left: 32px; }
.universal-content__body ul li { margin-bottom: 12px; }
.universal-content__body h3 { margin-top: 40px; margin-bottom: 15px; }

.universal-content__body a {
  color: var(--gs-blue);
  font-weight: 400;
  text-decoration: none;
  transition: color .18s ease;
}
.universal-content__body h4 a {
  font-family: var(--gs-font-display);
  font-weight: 600;
}
.universal-content__body a:hover {
  color: #000;
  text-decoration: none;
}
.universal-content__body a:focus-visible { text-decoration: underline; }

/* Light text variant — forces body copy to white */
.universal-content--text-light .universal-content__body,
.universal-content--text-light .universal-content__body p {
  color: var(--gs-white);
}

/* Headings stay readable on dark blue/navy backgrounds. */
.gs-bg--blue .universal-content__body h4,
.gs-bg--navy .universal-content__body h4 { color: var(--gs-white); }

/* Orange separator bar above every h4 — 150px wide, follows text alignment. */
.universal-content__body h4::before {
  content: "";
  display: block;
  width: 150px;
  height: 4px;
  background: var(--gs-orange);
  margin-bottom: 20px;
}
.universal-content--align-center .universal-content__body h4::before {
  margin-inline: auto;
}

/* Narrow screens: button group follows the intro and aligns left
   when the module's Mobile Text Alignment is set to Left. */
@media (max-width: 639.98px) {
  .universal-content--align-center.gs-mobile-align-left .gs-btn-group { justify-content: flex-start; }
  /* Match the orange h4 separator bar to the mobile-left text alignment.
     When Mobile Text Alignment is set to Center in the editor, the
     .gs-mobile-align-left class isn't emitted, so the bar keeps its
     centered margin-inline: auto. */
  .universal-content--align-center.gs-mobile-align-left .universal-content__body h4::before {
    margin-inline: 0;
  }
}

/* After content — small supporting text below the buttons (disclaimers,
   fine print, supporting links). Inherits the module's text alignment. */
.universal-content__after-content {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
  color: var(--gs-text-dark);
}
.universal-content__after-content p { margin: 0 0 8px; }
.universal-content__after-content p:last-child { margin: 0; }
.universal-content__after-content hr {
  border: 0;
  border-top: 1px solid silver;
  margin: 0 0 30px;
}
.universal-content--text-light .universal-content__after-content,
.universal-content--text-light .universal-content__after-content p { color: var(--gs-white); }
