/* =============================================================================
   style.css — Custom overrides on top of Grotesk design system
   ============================================================================= */

@import url("grotesk_ultramin.css");

/* Customize inputs & selects to match Grotesk aesthetics */
input[type="text"], select {
  font-family: var(--font-ui);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 8px 12px;
  width: 100%;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease, color 180ms ease;
  outline: none;
}
input[type="text"]:hover, select:hover {
  border-color: var(--signal);
}
input[type="text"]:focus-visible, select:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 2px;
}

/* Previews container layout */
.previews {
  display: flex;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
}
.previews .panel {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  width: 100%;
}

#license-canvas, #three-container {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1.5935 / 1;
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
#three-container {
  display: none;
  touch-action: none;
}

/* Info and glossary details panel overrides */
.info {
  background: var(--panel-2);
  padding: 18px;
  margin-top: 18px;
  animation: rise 700ms ease-out both;
  border: 1px solid var(--line);
}
.info summary {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  cursor: pointer;
  outline: none;
  user-select: none;
}
.info ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.8;
}
.info code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  padding: 2px 6px;
  font-size: 11px;
}

/* Status message styling */
.status {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  min-height: 20px;
  word-break: break-all;
}
.status.error {
  color: var(--danger);
}
.status.ok {
  color: var(--signal);
}

/* Glossary list styling */
dl.glossary {
  margin: 14px 0 2px;
}
dl.glossary dt {
  color: var(--text);
  font-weight: 700;
  margin-top: 14px;
  font-size: 12px;
}
dl.glossary dd {
  margin: 4px 0 0;
  padding-left: 14px;
  line-height: 1.6;
  border-left: 2px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 12px;
}

/* Preview mode for OpenGraph screenshot */
body.preview-mode {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}
body.preview-mode .topbar,
body.preview-mode .side,
body.preview-mode .panel-title,
body.preview-mode div[style*="justify-content: flex-end"],
body.preview-mode #three-panel,
body.preview-mode main > *:not(.previews) {
  display: none !important;
}
body.preview-mode .frame,
body.preview-mode .layout,
body.preview-mode .main,
body.preview-mode .previews,
body.preview-mode .panel {
  display: block !important;
  width: 1568px !important;
  height: 984px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.preview-mode #license-canvas {
  display: block !important;
  width: 1568px !important;
  height: 984px !important;
  max-width: none !important;
  border: none !important;
  border-radius: 0 !important;
}

