/* Six compositions share one content and publishing model. */
.design-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.design-caption {
  display: flex;
  align-items: center;
  gap: 16px;
}
.design-caption .eyebrow {
  font-size: 10px;
}
.design-caption > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.design-options {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.design-options button {
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  padding: 7px 15px;
  font-size: 12px;
  min-height: 34px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.design-options button > span {
  font-family: monospace;
  font-size: 10px;
  margin-right: 6px;
  opacity: 0.6;
}
.design-options button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}
.constellation-map {
  display: none;
}
.site-design-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 32px;
}
.site-design-settings h2 {
  font-size: 23px;
}
.site-design-settings p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.default-design-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.default-design-controls select {
  font-size: 12px;
  width: auto;
  min-width: 210px;
}
.default-design-controls button {
  min-height: 45px;
  font-size: 12px;
  padding: 10px 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html[data-design="constellation"] {
  --bg: #090f18;
  --surface: #101c2a;
  --surface2: #1a2b3d;
  --line: #233448;
  --text: #edf7ff;
  --muted: #91a6bb;
  --lime: #81e4ff;
  --ink: #082331;
  color-scheme: dark;
}
html[data-design="constellation"] body {
  background-image:
    radial-gradient(ellipse at 75% 12%, #13364944, transparent 40%),
    linear-gradient(#1c344012 1px, transparent 1px),
    linear-gradient(90deg, #1c344012 1px, transparent 1px);
  background-size:
    auto,
    64px 64px,
    64px 64px;
}
html[data-design="constellation"] .brand-secondary {
  color: #90a8bd;
}
html[data-design="constellation"] .brand-mark {
  border-radius: 9px;
}
html[data-design="constellation"] .hero {
  grid-template-columns: 0.84fr 1.16fr;
  gap: 26px;
  padding: 55px 0 63px;
  align-items: center;
}
html[data-design="constellation"] .hero-art {
  display: none;
}
html[data-design="constellation"] .hero .edition {
  display: none;
}
html[data-design="constellation"] .hero h1 {
  font-size: 58px;
  white-space: normal;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
html[data-design="constellation"] .hero-copy > p {
  font-size: 14px;
}
html[data-design="constellation"] .hero-note {
  display: none;
}
html[data-design="constellation"] .constellation-map {
  display: block;
  min-width: 0;
  position: relative;
  border: 1px solid #314962;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, #1c385777, transparent 75%), #0d18257a;
  padding: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 70px #07172277;
}
html[data-design="constellation"] .project-card {
  border-radius: 14px;
  background: #101c2ae6;
}
html[data-design="constellation"] .project-card:hover {
  border-color: #507c97;
}
html[data-design="constellation"] .project-grid {
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
html[data-design="constellation"] .project-cover {
  height: 270px;
}
html[data-design="constellation"] .card-category,
html[data-design="constellation"] .card-status {
  color: #98c1d4;
}
html[data-design="constellation"] .card-description {
  color: #91a6bb;
}
html[data-design="constellation"] .card-category .category-line {
  background: #81e4ff;
}
html[data-design="constellation"] .tag {
  border-color: #314c66;
  color: #a5c2da;
}
html[data-design="constellation"] .project-open {
  border-color: #314c66;
  color: #b6def0;
}
html[data-design="constellation"] .count-badge {
  color: #96b7d0;
  border-color: #314c66;
}
html[data-design="constellation"] .collection-end {
  color: #8bacc4;
}
html[data-design="constellation"] .closing p {
  color: #6685a0;
}
html[data-design="constellation"] .closing {
  margin-top: 65px;
}
html[data-design="constellation"] .footer-wordmark {
  color: #b3c8da;
}
html[data-design="constellation"] .site-footer,
html[data-design="constellation"] .site-footer > a:last-child {
  color: #7595b1;
}
html[data-design="constellation"] .project-dialog,
html[data-design="constellation"] .editor-dialog,
html[data-design="constellation"] .confirm-dialog {
  border-color: #365674;
}
html[data-design="constellation"] input,
html[data-design="constellation"] textarea,
html[data-design="constellation"] select {
  background: #0c1624;
  color: #edf7ff;
}
html[data-design="constellation"] .search input {
  background: transparent;
}
html[data-design="constellation"] .field label {
  color: #c0d4e5;
}
html[data-design="constellation"] .detail-subtitle {
  color: #b2d4e7;
}
html[data-design="constellation"] .upload-zone {
  background: #122639;
  border-color: #3b607d;
}
html[data-design="constellation"] .published-badge {
  color: #99d1e3;
  border-color: #3b607d;
}
html[data-design="constellation"] .draft-badge {
  color: #d0b887;
  border-color: #6a5938;
}
html[data-design="constellation"] .admin-thumbnail {
  background: #17344a;
  color: #81e4ff;
}
html[data-design="constellation"] .chat-message.user > div {
  background: #17344a;
}
html[data-design="constellation"] .suggestions button {
  color: #a4c9e5;
  border-color: #395570;
}
html[data-design="constellation"] .source-label {
  color: #a4c9e5;
}
html[data-design="constellation"] .demo-label {
  color: #81e4ff;
}
.map-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.map-caption .eyebrow {
  font-size: 10px;
  color: #89c9dd;
}
.map-caption > span:last-child {
  font-size: 11px;
  color: #6c93ad;
}
.map-stage {
  position: relative;
  height: 310px;
  margin: 15px 0 12px;
  background-image: radial-gradient(#38557166 1px, transparent 1px);
  background-size: 20px 20px;
}
.map-connections {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  overflow: visible;
}
.map-link {
  stroke: #5484a9;
  stroke-width: 0.15;
  fill: none;
  stroke-dasharray: 0.5 0.6;
}
.map-pulse {
  fill: #81e4ff;
  filter: drop-shadow(0 0 2px #81e4ff);
}
.map-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid #517995;
  background: #14283bcc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 14px #24415922,
    0 0 0 28px #24415911,
    inset 0 0 30px #3b5e7033;
}
.map-hub > span {
  font-size: 31px;
  color: #81e4ff;
  line-height: 1;
}
.map-hub strong {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-top: 7px;
}
.map-hub small {
  font-size: 6px;
  letter-spacing: 0.13em;
  color: #719ab7;
  margin-top: 3px;
}
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #132638e8;
  border: 1px solid #3b607b;
  border-radius: 11px;
  width: 155px;
  min-height: 71px;
  text-align: left;
  padding: 11px 32px 10px 13px;
  box-shadow: 0 8px 22px #050b1733;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.map-node:hover,
.map-node:focus-visible {
  border-color: #81e4ff;
  background: #1b3c51;
  box-shadow: 0 0 30px #81e4ff19;
}
.node-index {
  display: block;
  font: 8px monospace;
  color: #6495b2;
  line-height: 1;
}
.node-name {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-top: 6px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.node-category {
  font-size: 9px;
  color: #85a8bd;
  display: block;
  margin-top: 5px;
  line-height: 1;
}
.node-open {
  position: absolute;
  right: 12px;
  top: 18px;
  font-size: 16px;
  color: #81e4ff;
}
.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 8px monospace;
  letter-spacing: 0.06em;
  color: #517993;
  border-top: 1px solid #284255;
  padding-top: 12px;
}
.map-loading,
.map-empty {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  color: #81a4be;
  font-size: 12px;
}
@media (max-width: 1100px) {
  html[data-design="constellation"] .hero h1 {
    font-size: 49px;
  }
  .map-node {
    width: 130px;
  }
  .design-caption > span:last-child {
    display: none;
  }
  .site-design-settings {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .default-design-controls {
    width: 100%;
  }
  .default-design-controls select {
    flex: 1;
  }
}
@media (max-width: 800px) {
  .design-switcher {
    padding: 13px 0;
  }
  .design-caption .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .design-options button {
    font-size: 11px;
    padding: 6px 10px;
  }
  .design-options button > span {
    font-size: 8px;
    margin-right: 4px;
  }
  html[data-design="constellation"] .hero {
    grid-template-columns: 1fr;
    padding: 37px 0 38px;
    gap: 35px;
  }
  html[data-design="constellation"] .hero h1 {
    font-size: 54px;
    max-width: 600px;
  }
  html[data-design="constellation"] .hero-copy > p {
    max-width: 440px;
  }
  html[data-design="constellation"] .hero .desktop-break {
    display: none;
  }
  .map-stage {
    height: 310px;
  }
  .map-node {
    width: 145px;
  }
  .map-hub {
    height: 102px;
    width: 102px;
  }
  html[data-design="constellation"] .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  html[data-design="constellation"] .project-cover {
    height: 240px;
  }
  .site-design-settings {
    padding: 20px;
  }
}
@media (max-width: 540px) {
  .design-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 0 14px;
  }
  .design-caption {
    width: 100%;
    justify-content: space-between;
  }
  .design-caption > span:last-child {
    display: block;
    font-size: 10px;
  }
  .design-caption .eyebrow {
    font-size: 8px;
  }
  .design-options {
    width: 100%;
    justify-content: space-between;
    padding: 3px;
  }
  .design-options button {
    flex: 1;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .design-options button > span {
    font-size: 8px;
  }
  .design-options button[aria-pressed="true"] {
    font-weight: 650;
  }
  html[data-design="constellation"] .hero h1 {
    font-size: clamp(35px, 10.8vw, 43px);
  }
  html[data-design="constellation"] .hero-copy > p {
    font-size: 13px;
  }
  html[data-design="constellation"] .constellation-map {
    padding: 16px 12px;
    border-radius: 14px;
  }
  .map-stage {
    height: 280px;
    margin: 15px 0;
  }
  .map-node {
    width: 34%;
    min-height: 69px;
    padding: 10px 17px 10px 9px;
  }
  .node-name {
    font-size: 12px;
  }
  .node-category {
    font-size: 8px;
  }
  .node-open {
    font-size: 13px;
    right: 7px;
    top: 10px;
  }
  .map-hub {
    height: 77px;
    width: 77px;
    box-shadow:
      0 0 0 10px #24415922,
      0 0 0 20px #24415911;
  }
  .map-hub > span {
    font-size: 23px;
  }
  .map-hub strong {
    font-size: 9px;
  }
  .map-hub small {
    font-size: 5px;
    letter-spacing: 0.03em;
  }
  .map-caption .eyebrow {
    font-size: 9px;
  }
  .map-caption > span:last-child {
    font-size: 10px;
  }
  .map-footer {
    font-size: 6px;
    gap: 5px;
  }
  html[data-design="constellation"] .project-grid {
    grid-template-columns: 1fr;
  }
  html[data-design="constellation"] .project-cover {
    height: 265px;
  }
  .default-design-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .default-design-controls select {
    width: 100%;
  }
  .default-design-controls .button {
    width: 100%;
  }
}
.map-node {
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.map-node.is-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 28px #0006;
  border-color: #81e4ff;
  z-index: 4;
}
.map-link {
  stroke-dasharray: none;
  transition:
    stroke 0.2s,
    stroke-width 0.2s;
}
.map-link.active {
  stroke: #81e4ff;
  stroke-width: 0.28;
}
/* Force graph geometry; original midnight/ice palette. */
.map-stage {
  height: 360px;
  background: none;
  overflow: hidden;
}
.map-caption .eyebrow {
  color: #89c9dd;
}
.map-caption > span:last-child,
.map-footer {
  color: #7b9ab3;
}
.graph-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 2;
  overflow: visible;
  border-radius: 50%;
}
.graph-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #82a4bf;
  box-shadow: 0 0 0 4px #82a4bf08;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.graph-label {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #abc1d1;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.graph-node:hover .graph-dot,
.graph-node:focus-visible .graph-dot,
.graph-node.is-dragging .graph-dot {
  background: #81e4ff;
  box-shadow: 0 0 0 7px #81e4ff18;
  transform: scale(1.15);
}
.graph-node.is-dragging {
  cursor: grabbing;
}
.graph-node:hover .graph-label {
  color: #edf7ff;
}
.graph-center {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.graph-center > span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #81e4ff;
}
.graph-center strong {
  position: absolute;
  top: 28px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  color: #91a6bb;
}
.graph-edge {
  stroke: #344f69;
  stroke-width: 1;
  transition: stroke 0.18s;
}
.graph-edge.active {
  stroke: #81e4ff;
  stroke-width: 1.5;
}
@media (max-width: 540px) {
  .map-stage {
    height: 310px;
  }
  .graph-label {
    font-size: 10px;
  }
  .map-footer {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .graph-dot,
  .graph-edge {
    transition: none;
  }
}
.graph-dense .graph-label {
  opacity: 0;
  transition: opacity 0.15s;
  background: #101c2a;
  padding: 3px 6px;
  border-radius: 4px;
  top: 37px;
}
.graph-dense .graph-node:hover,
.graph-dense .graph-node:focus-visible {
  z-index: 5;
}
.graph-dense .graph-node:hover .graph-label,
.graph-dense .graph-node:focus-visible .graph-label {
  opacity: 1;
}
