/* Typvs product UI tokens. Marketing type stays in site.css.
   Nucleo assets are not in this repository.
   TODO: replace .product-icon paths with the Nucleo outline set (1px stroke). */

.product-follow {
  margin-top: var(--space-6);
}

.product {
  --color-text-subtle: #8a8a8a;
  --color-text-default: #c8c8c8;
  --color-text-strong: #f4f4f4;
  --color-bg-selected: #1c1c1c;
  --color-border: #2a2a2a;
  --color-canvas: var(--bg-elevated);
  --product-font: "SF Pro Text", "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  --product-size-xs: 12px;
  --product-size-base: 13px;
  --product-size-sm: 14px;
  --product-size-md: 16px;
  --product-size-lg: 18px;
  --product-size-xl: 24px;
  --product-weight: 400;
  --product-weight-medium: 500;
  --product-icon: 14px;
  --product-radius: 4px;
  font-family: var(--product-font);
  font-size: var(--product-size-base);
  font-weight: var(--product-weight);
  line-height: 1.35;
  color: var(--color-text-default);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: visible;
}


.product * {
  box-sizing: border-box;
}

.product-icon {
  width: var(--product-icon);
  height: var(--product-icon);
  display: block;
  flex: none;
}

.product-icon path,
.product-icon circle,
.product-icon rect,
.product-icon line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.product-toolbar,
.product-sidebar,
.product-prompt,
.product-code-bar,
.product-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.product-label {
  margin: 0;
  padding: 0 4px;
  font-size: var(--product-size-xs);
  font-weight: var(--product-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.product-heading {
  margin: 0;
  font-size: var(--product-size-lg);
  font-weight: var(--product-weight-medium);
  line-height: 1.25;
  color: var(--color-text-strong);
}

.product-title {
  margin: 0;
  font-size: var(--product-size-sm);
  font-weight: var(--product-weight-medium);
  color: var(--color-text-strong);
}

.product-meta,
.product-help {
  margin: 0;
  padding: 10px 12px;
  font-size: var(--product-size-xs);
  font-weight: var(--product-weight);
  line-height: 1.35;
  color: var(--color-text-subtle);
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.product-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--product-radius);
  background: transparent;
  color: var(--color-text-default);
  font-family: inherit;
  font-size: var(--product-size-base);
  font-weight: var(--product-weight);
  line-height: 1.2;
  cursor: pointer;
}

.product-control[aria-selected="true"],
.product-control.is-selected {
  background: var(--color-bg-selected);
  color: var(--color-text-strong);
  font-weight: var(--product-weight-medium);
}

.product-control:hover {
  background: var(--color-bg-selected);
}

.product-icon-button {
  width: 28px;
  padding: 0;
}

.product-toolbar-end {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--color-canvas);
}

.product-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.product-canvas {
  position: relative;
  padding: 16px;
  background: var(--color-canvas);
}

.product-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.study-board {
  --split: 40px;
  --controls: 80%;
  --side: 100%;
  --color-canvas: var(--bg-elevated);
  --construction-node-fill: var(--bg-elevated);
  position: relative;
  background: var(--bg-elevated);
}

.study-board .product {
  --color-canvas: var(--bg-elevated);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.study-board .product-toolbar,
.study-board .product-sidebar,
.study-board .product-canvas,
.study-board .study-controls {
  background: transparent;
  border-color: transparent;
}

.study-board .construction-grid {
  z-index: 2;
}

@media (max-width: 767px) {
  .study-board .study-side {
    display: none;
  }
}

#demo-canvas {
  padding: 0;
}

.study-controls {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--color-border);
  font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: var(--color-text-subtle);
}

.study-slider {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px 72px;
  gap: 10px;
  align-items: center;
}

.study-slider input {
  width: 100%;
  accent-color: #f4f4f4;
}

.study-slider strong {
  color: var(--color-text-strong);
  font-weight: 500;
}

#demo-canvas .study {
  width: 100%;
  height: auto;
}

.product-glyph {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  padding: 24px 16px 16px;
}

.product-glyph figure {
  margin: 0;
}

.product-glyph svg {
  width: 100%;
  height: auto;
}

.product-glyph figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: var(--product-size-xs);
  color: var(--color-text-subtle);
  letter-spacing: 0;
  text-transform: none;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.product-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.product-field:last-child {
  border-bottom: 0;
}

.product-field span {
  font-size: var(--product-size-base);
  color: var(--color-text-default);
}

.product-field strong {
  font-size: var(--product-size-base);
  font-weight: var(--product-weight-medium);
  color: var(--color-text-strong);
}

.product-prompt {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}

.product-prompt p {
  margin: 0;
  font-size: var(--product-size-sm);
  font-weight: var(--product-weight);
  color: var(--color-text-strong);
}

.product-prompt .product-label,
.product-prompt .product-help {
  padding: 0;
}

.product-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
}

.product-compare .product-canvas {
  min-height: 200px;
  border-right: 1px solid var(--color-border);
}

.product-compare .product-canvas:last-child {
  border-right: 0;
}

.product-pane-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: var(--product-size-xs);
  color: var(--color-text-subtle);
}

.product-status {
  gap: 8px;
}

.product-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  font-style: normal;
}

.product-status.is-shown i {
  background: var(--color-text-strong);
}

.product-code {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--color-border);
}

.product-code .product-code-bar {
  background: transparent;
  border-bottom-color: rgba(246, 245, 242, 0.12);
}

.product-code .product-label {
  color: var(--fg-muted);
}

.product-code .product-tabs {
  overflow-x: auto;
}

.product-code .pill {
  border-color: rgba(246, 245, 242, 0.28);
  color: var(--fg);
  background: transparent;
}

.product-code .pill[aria-selected="true"] {
  background: var(--fg);
  color: var(--fg-inverse);
  border-color: var(--fg);
}

.product-code pre {
  margin: 0;
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
}

.product-code code {
  font-family: inherit;
}

.study-grid path,
.structure-guides path {
  fill: none;
  stroke: #7f7f7f;
  stroke-width: 1;
}

.study-measures path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.6;
}

.study-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.study-outline path.study-fill {
  fill: #f4f4f4;
  stroke: none;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.study-outline path.study-contour {
  fill: none;
  stroke: #f4f4f4;
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.study-glyph.is-hot .study-fill {
  opacity: 0;
}

.study-glyph.is-hot .study-contour {
  opacity: 1;
}

.study-pop {
  pointer-events: none;
}

.study-outline path,
.ink,
.wire,
.glyph-stroke {
  fill: none;
  stroke: #f4f4f4;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.study-nodes {
  display: none;
}

.study-measures {
  display: inline;
}

.study[data-state="nodes"] .study-nodes {
  display: inline;
}

.study-on {
  fill: #7c5cff;
  stroke: none;
  pointer-events: none;
}

.wire {
  stroke-dasharray: 3 3;
}

.glyph-fill {
  fill: #f4f4f4;
  stroke: none;
}

.study-on {
  fill: #7c5cff;
  stroke: none;
}

.study-handles line {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 0.6;
}

.study-off {
  fill: var(--bg-elevated);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.9;
}

.study-labels text,
.study-measures text,
.structure-label {
  fill: rgba(255, 255, 255, 0.45);
  font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
}

.demo-figure figcaption {
  font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 768px) {
  .product-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .product-sidebar {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }
}
