/* Config-driven frontend layout themes. Body classes are emitted from config.site layouts. */
body.layout-menu-classic .header {
  --layout-menu-bg: transparent;
}

body.layout-menu-underline .header .header-nav-list {
  gap: 28px;
}
body.layout-menu-underline .header .nav-link {
  position: relative;
  padding-bottom: 8px;
}
body.layout-menu-underline .header .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
body.layout-menu-underline .header .nav-item:hover > .nav-link::after,
body.layout-menu-underline .header .nav-item.active > .nav-link::after {
  transform: scaleX(1);
}
body.layout-menu-underline .header .dropdown-menu {
  border-top: 2px solid currentColor;
}

body.layout-menu-solid .header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
body.layout-menu-solid .header .nav-link,
body.layout-menu-solid .header .header-burger-line {
  color: #111827;
}
body.layout-menu-solid .header .header-burger-line {
  background: #111827;
}
body.layout-menu-solid .header .dropdown-menu {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

body.page-home.layout-main-modern .hero,
body.page-home.layout-main-modern .hero-cnt,
body.page-home.layout-main-modern .hero-inner {
  border-radius: 0 0 36px 36px;
}
body.page-home.layout-main-modern .section {
  padding-top: 96px;
  padding-bottom: 96px;
}
body.page-home.layout-main-modern .news-card,
body.page-home.layout-main-modern .project-slide,
body.page-home.layout-main-modern .content-section {
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

body.page-home.layout-main-editorial .hero-title,
body.page-home.layout-main-editorial .title,
body.page-home.layout-main-editorial h1,
body.page-home.layout-main-editorial h2 {
  letter-spacing: 0;
  font-family: Georgia, 'Times New Roman', serif;
}
body.page-home.layout-main-editorial .section {
  background: #fbfaf7;
}
body.page-home.layout-main-editorial .container {
  max-width: 1180px;
}

body:not(.page-home).layout-sub-wide .content-section,
body:not(.page-home).layout-sub-wide .sub-content,
body:not(.page-home).layout-sub-wide main.cms-page {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
body:not(.page-home).layout-sub-wide .container {
  max-width: 1280px;
}

body:not(.page-home).layout-sub-card main.cms-page,
body:not(.page-home).layout-sub-card .content-section,
body:not(.page-home).layout-sub-card .board-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
  padding: clamp(24px, 4vw, 48px);
}
body:not(.page-home).layout-sub-card .page-hero,
body:not(.page-home).layout-sub-card .sub-hero {
  border-radius: 0 0 28px 28px;
}

@media (max-width: 768px) {
  body:not(.page-home).layout-sub-card main.cms-page,
  body:not(.page-home).layout-sub-card .content-section,
  body:not(.page-home).layout-sub-card .board-container {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 20px 16px;
  }
}

/* CMS page content components shared by DB pages and generated page files. */
main.cms-page {
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}
.cms-page .cug-page-hero {
  padding: clamp(72px, 8vw, 104px) 20px 56px;
  background: var(--layout-surface, #0e2842);
  color: var(--layout-hero-ink, #fff);
}
.cms-page .cug-page-inner {
  max-width: var(--sub-width, 1180px);
  margin: 0 auto;
}
.cms-page .cug-eyebrow {
  margin: 0 0 16px;
  color: var(--layout-accent, #31b7ea);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cms-page .cug-page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}
.cms-page .cug-page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}
.cms-page .cug-page-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 10px 16px;
  color: currentColor;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 8px;
}
.cms-page .cug-page-section {
  padding: 56px 20px;
  background: #f6f8fb;
}
.cms-page .cug-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cms-page .cug-card {
  min-height: 160px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
}
.cms-page .cug-card h3 {
  margin: 0 0 12px;
  color: #102235;
  font-size: 20px;
  letter-spacing: 0;
}
.cms-page .cug-card h3 a {
  color: inherit;
  text-decoration: none;
}
.cms-page .cug-card p {
  margin: 0;
  color: #4c5d6d;
  font-size: 15px;
  line-height: 1.72;
}
body.tpl-main-clean .cms-page .cug-page-hero,
body.tpl-sub-readable .cms-page .cug-page-hero {
  background: #0e2842;
}
body.tpl-main-bold .cms-page .cug-page-hero,
body.tpl-sub-doc .cms-page .cug-page-hero {
  background: #111827;
}
body.tpl-main-lab .cms-page .cug-page-hero,
body.tpl-sub-data .cms-page .cug-page-hero {
  background: #0f4c81;
}
@media (max-width: 640px) {
  .cms-page .cug-page-hero {
    padding: 72px 18px 42px;
  }
  .cms-page .cug-page-section {
    padding: 36px 18px;
  }
}

/* Origin content imported from the legacy site pages. */
.cms-page .cug-origin-hero {
  position: relative;
  min-height: clamp(360px, 48vw, 620px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.cms-page .cug-origin-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--cug-hero-image, none) center/cover no-repeat;
}
.cms-page .cug-origin-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14,40,66,.92), rgba(14,40,66,.68) 48%, rgba(14,40,66,.34));
}
.cms-page .cug-origin-section {
  padding: clamp(56px, 7vw, 96px) 20px;
  background: #fff;
}
.cms-page .cug-origin-section.cug-section-alt {
  background: #f6f8fb;
}
.cms-page .cug-section-head {
  max-width: 820px;
  margin: 0 0 32px;
}
.cms-page .cug-section-head h2 {
  margin: 0 0 12px;
  color: #102235;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}
.cms-page .cug-section-head p,
.cms-page .cug-lead {
  margin: 0;
  color: #4c5d6d;
  font-size: 17px;
  line-height: 1.8;
}
.cms-page .cug-origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.cms-page .cug-origin-card {
  min-height: 168px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
}
.cms-page .cug-origin-card .cug-card-meta {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0072bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.cms-page .cug-origin-card h3 {
  margin: 0 0 12px;
  color: #102235;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}
.cms-page .cug-origin-card h3 a {
  color: inherit;
  text-decoration: none;
}
.cms-page .cug-origin-card p {
  margin: 0;
  color: #4c5d6d;
  font-size: 15px;
  line-height: 1.72;
}
.cms-page .cug-origin-split {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.cms-page .cug-origin-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f8fb;
}
.cms-page .cug-origin-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.cms-page .cug-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.cms-page .cug-logo-grid .cug-origin-figure {
  padding: 36px;
  border: 1px solid #dfe5ec;
}
.cms-page .cug-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cms-page .cug-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: #102235;
  background: #eef4f8;
  border: 1px solid #d7e4ee;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.cms-page .cug-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.cms-page .cug-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cms-page .cug-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
}
.cms-page .cug-origin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.cms-page .cug-origin-table th,
.cms-page .cug-origin-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e6edf3;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.cms-page .cug-origin-table th {
  color: #102235;
  background: #f1f5f9;
  font-weight: 800;
}
.cms-page .cug-origin-table tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 760px) {
  .cms-page .cug-origin-split {
    grid-template-columns: 1fr;
  }
  .cms-page .cug-origin-card {
    min-height: 0;
  }
}

