/* CutiePy public shell hotfix: single canonical branch */

.cp-public-body,
.cp-public-body html,
.cp-public-body body,
.cp-public-body main {
  min-height: 100vh;
}

.cp-public-body {
  margin: 0;
  overflow-x: hidden;
  background: #0a2ccf;
  color: #0d1324;
}

.cp-public-body main {
  position: relative;
  padding-top: 0 !important;
}

/* neutralize generic site header bar on public side */
.cp-public-body > header,
.cp-public-body header:not(.cp-topbar-wrap) {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
}

.cp-site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 11, 28, 0.18) 0%, rgba(6, 11, 28, 0.50) 52%, rgba(6, 11, 28, 0.82) 100%),
    url('/img/fusion-bg.png') center top / cover no-repeat;
  transition: opacity .28s ease, filter .28s ease;
}

.cp-site-shell.is-faded {
  opacity: 0.18;
  filter: blur(2px) saturate(.75);
}

.cp-no-scroll {
  overflow: hidden !important;
}

.cp-topbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 30px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.cp-topbar {
  width: min(1440px, calc(100vw - 36px));
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}

.cp-brand {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin: 30px -24px 0 -42px;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cp-brand:hover {
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cp-brand img {
  display: block;
  width: 466px;
  max-width: 36vw;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 20, 48, .36));
}

.cp-nav {
  flex: 1 1 auto;
  margin: 4px 0 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.38) 100%);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: 0 12px 26px rgba(0, 18, 45, .18), inset 0 1px 0 rgba(255,255,255,.52);
  border-radius: 26px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 4px 16px 4px 28px;
}

.cp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-menu-root {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.cp-menu-item {
  position: relative;
}

.cp-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.46));
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 14px rgba(6, 17, 40, .10);
  color: #101010;
  font: 700 14px/1.15 "Courier New", Courier, monospace;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.cp-menu-link:hover,
.cp-menu-item:hover > .cp-menu-link,
.cp-menu-item:focus-within > .cp-menu-link,
.cp-menu-item.is-open > .cp-menu-link,
.cp-menu-item.is-active > .cp-menu-link {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 20px rgba(7, 24, 62, .16);
  transform: translateY(-1px);
  color: #0c1f48;
}

.cp-menu-caret {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 2px;
  transition: transform .18s ease;
}

.cp-menu-item:hover > .cp-menu-link .cp-menu-caret,
.cp-menu-item:focus-within > .cp-menu-link .cp-menu-caret,
.cp-menu-item.is-open > .cp-menu-link .cp-menu-caret {
  transform: rotate(225deg) translateY(-1px);
}

.cp-submenu-shell {
  position: absolute;
  left: 0;
  top: calc(100% + 1px);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10;
}

.cp-menu-item:hover > .cp-submenu-shell,
.cp-menu-item:focus-within > .cp-submenu-shell,
.cp-menu-item.is-open > .cp-submenu-shell,
.cp-menu-item.is-active > .cp-submenu-shell {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cp-submenu {
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.54));
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 20px;
  padding: 10px;
  backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 18px 28px rgba(0, 18, 45, .24);
}

.cp-submenu .cp-submenu-shell {
  left: calc(100% - 22px);
  top: -12px;
}

.cp-submenu .cp-menu-item.has-children::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 100%;
  width: 18px;
  height: calc(100% - 8px);
}

.cp-submenu-link {
  width: 100%;
  justify-content: space-between;
  min-height: 40px;
}

.cp-submenu > .cp-menu-item + .cp-menu-item {
  margin-top: 10px;
}

.cp-hero {
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  padding: 130px 52px 42px;
}

.cp-hero-panel {
  max-width: 720px;
  padding: 28px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 18, 44, .68), rgba(11, 18, 44, .44));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 38px rgba(0, 8, 24, .28);
  backdrop-filter: blur(10px);
}

.cp-eyebrow,
.cp-page-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font: 700 12px/1.2 "Courier New", Courier, monospace;
  color: #ffd763;
}

.cp-hero-panel h1 {
  margin: 0 0 10px;
  font: 700 clamp(42px, 6vw, 74px)/.95 "Courier New", Courier, monospace;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.cp-hero-copy {
  margin: 0;
  color: #e6eefc;
  font-size: 18px;
  max-width: 62ch;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cp-hero-link,
.cp-overview-actions a,
.cp-child-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 14px/1.2 "Courier New", Courier, monospace;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(42, 59, 156, .92), rgba(24, 36, 102, .92));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.cp-page-shell {
  padding: 0 52px 52px;
}

.cp-page-card,
.cp-overview-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 18px 30px rgba(0, 18, 45, .18);
  backdrop-filter: blur(12px);
  padding: 26px 28px;
}

.cp-page-content {
  color: #15223f;
}

.cp-page-content h2,
.cp-page-content h3,
.cp-page-content h4 {
  color: #233d86;
}

.cp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font: 700 12px/1.3 "Courier New", Courier, monospace;
  color: #4661b0;
}

.cp-breadcrumbs a {
  color: #233d86;
  text-decoration: none;
}

.cp-child-links,
.cp-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cp-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.cp-overview-item {
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(42,54,143,.12);
  box-shadow: 0 12px 24px rgba(20,28,80,0.08);
}

.cp-overview-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #233d86;
}

.cp-overview-item p {
  margin: 0;
  color: #26425e;
}

.cp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
}

.cp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 28, .64);
}

.cp-modal-window {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
}

.cp-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  color: #172856;
  background: rgba(255,255,255,.86);
  cursor: pointer;
}

.cp-modal-frame {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 30px;
}

.cp-modal-grid {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-rows: 72px 1fr 40px;
  min-height: 520px;
}

.cp-modal-top {
  grid-column: 2;
  display: flex;
  align-items: center;
}

.cp-modal-top h2 {
  margin: 0;
  color: #ffffff;
  font: 700 24px/1.2 "Courier New", Courier, monospace;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.cp-modal-center {
  grid-column: 2;
  grid-row: 2;
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  color: #162549;
}

.cp-modal-center h2,
.cp-modal-center h3,
.cp-modal-center h4 {
  color: #233d86;
}

.cp-modal-center a {
  color: #233d86;
}

@media (max-width: 980px) {
  .cp-brand img {
    width: 320px;
    max-width: 42vw;
  }

  .cp-topbar {
    width: calc(100vw - 20px);
  }

  .cp-nav {
    padding-left: 14px;
    padding-right: 10px;
  }

  .cp-menu-root {
    gap: 6px;
  }

  .cp-menu-link {
    padding: 0 12px;
    font-size: 13px;
  }

  .cp-hero {
    padding: 112px 20px 26px;
    min-height: 58vh;
  }

  .cp-page-shell {
    padding: 0 20px 30px;
  }
}

@media (max-width: 760px) {
  .cp-topbar-wrap {
    top: 8px;
  }

  .cp-topbar {
    width: calc(100vw - 12px);
    min-height: 64px;
  }

  .cp-brand {
    margin: 2px -10px 0 -14px;
  }

  .cp-brand img {
    width: 220px;
    max-width: 46vw;
  }

  .cp-nav {
    overflow-x: auto;
    overflow-y: visible;
    padding: 6px 10px 6px 14px;
    min-height: 44px;
  }

  .cp-menu-root {
    justify-content: flex-start;
    min-width: max-content;
  }

  .cp-submenu-shell {
    min-width: 220px;
  }

  .cp-submenu .cp-submenu-shell {
    left: 12px;
    top: calc(100% + 1px);
  }

  .cp-submenu .cp-menu-item.has-children::after {
    display: none;
  }

  .cp-hero-panel,
  .cp-page-card,
  .cp-overview-card {
    padding: 18px;
    border-radius: 20px;
  }

  .cp-hero-panel h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .cp-hero-copy {
    font-size: 15px;
  }

  .cp-modal-window {
    width: calc(100vw - 14px);
    margin: 7px auto;
    max-height: calc(100vh - 14px);
  }

  .cp-modal-frame {
    padding: 10px;
  }

  .cp-modal-grid {
    grid-template-columns: 8px 1fr 8px;
    grid-template-rows: 58px 1fr 8px;
  }

  .cp-modal-center {
    padding: 16px;
  }
}


.cp-topbar,
.cp-nav,
.cp-menu-root,
.cp-menu-item {
  overflow: visible;
}

.cp-menu-item.has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}


.cp-page-shell {
  padding: 118px 32px 52px;
}

.cp-page-stack {
  width: min(1240px, calc(100vw - 96px));
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.cp-page-panel {
  position: relative;
  padding: 26px 28px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 24, 76, .82), rgba(11, 24, 62, .58));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 38px rgba(0, 8, 24, .24);
  backdrop-filter: blur(12px);
  color: #eff6ff;
}

.cp-page-panel-single {
  max-width: 1120px;
  margin: 0 auto;
}

.cp-page-header-row,
.cp-child-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-page-title {
  margin: 0 0 14px;
  color: #f7fbff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: .95;
}

.cp-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 140, 255, .36), rgba(81, 106, 224, .28));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  color: #ffffff;
  font: 700 13px/1.1 "Courier New", Courier, monospace;
  text-decoration: none;
}

.cp-inline-link:hover {
  background: linear-gradient(180deg, rgba(140, 161, 255, .48), rgba(95, 120, 234, .38));
}

.cp-page-content {
  color: rgba(244, 248, 255, .95);
}

.cp-page-content h2,
.cp-page-content h3,
.cp-page-content h4,
.cp-child-card-content h2,
.cp-child-card-content h3,
.cp-child-card-content h4 {
  color: #ffffff;
}

.cp-page-content p,
.cp-page-content li,
.cp-child-card-content p,
.cp-child-card-content li {
  color: rgba(244, 248, 255, .93);
  font-size: 1rem;
  line-height: 1.7;
}

.cp-page-content code,
.cp-child-card-content code {
  background: rgba(255,255,255,.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.cp-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.cp-child-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.cp-child-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.cp-child-card-content {
  margin-top: 12px;
}

.cp-doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-doc-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 115, 245, .54), rgba(66, 88, 220, .44));
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  font: 700 14px/1.1 "Courier New", Courier, monospace;
}

.cp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.cp-info-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 900px) {
  .cp-page-shell {
    padding: 106px 16px 40px;
  }

  .cp-page-stack {
    width: min(100vw - 24px, 100%);
  }

  .cp-page-header-row,
  .cp-child-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

.cp-page-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
  align-items: center;
}

.cp-page-hero-copy {
  min-width: 0;
}

.cp-page-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-page-hero-art img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.25));
}

.cp-bullet-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.cp-bullet-list li {
  margin: 0 0 10px;
}

.cp-code-wrap {
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(3, 13, 52, 0.30);
}

.cp-page-content pre[class*="language-"],
.cp-child-card-content pre[class*="language-"] {
  margin: 0;
  border-radius: 20px;
  font-size: 14px;
}

.cp-page-content :not(pre) > code,
.cp-child-card-content :not(pre) > code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 960px) {
  .cp-page-hero-row {
    grid-template-columns: 1fr;
  }

  .cp-page-hero-art {
    order: -1;
  }

  .cp-page-hero-art img {
    max-width: 240px;
  }
}
