/* Brand Live � Typography panel (mirrors layout panel patterns) */

.guidelines-themes-panel--typo-wide {
  width: min(420px, 100vw);
}

.guidelines-themes-body--typography {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.blg-typo-scope-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(14, 23, 42, 0.12);
}

.blg-typo-scope-tab {
  flex: 1;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blg-muted, #64748b);
  cursor: pointer;
}

.blg-typo-scope-tab.is-active {
  color: var(--blg-ink, #0e172a);
  border-bottom-color: var(--blg-blue, #ff8300);
}

.blg-typo-scope-banner,
.blg-typo-actions,
.blg-typo-field,
.blg-typo-dimension,
.blg-typo-dimension-head,
.blg-typo-dimension-custom,
.blg-typo-dimension-custom-label,
.blg-typo-preset-row,
.blg-typo-color-row,
.blg-typo-color-clear,
.blg-typo-field-label,
.blg-typo-pill-group,
.blg-typo-segment-btn,
.blg-typo-custom-value,
.blg-typo-custom-input,
.blg-typo-reset-btn,
.blg-typo-promote-btn,
.blg-typo-export-btn,
.blg-typo-slot-reset {
  /* mapped below */
}

.blg-typo-scope-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  background: rgba(255, 131, 0, 0.08);
  color: var(--blg-ink, #0e172a);
}

.blg-typo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 12px;
}

.blg-typo-reset-btn,
.blg-typo-promote-btn,
.blg-typo-export-btn,
.blg-typo-slot-reset {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blg-muted, #64748b);
}

.blg-typo-reset-btn:hover,
.blg-typo-promote-btn:hover,
.blg-typo-export-btn:hover,
.blg-typo-slot-reset:hover {
  color: var(--blg-ink, #0e172a);
  background: rgba(14, 23, 42, 0.06);
}

.blg-typo-section-label {
  margin: 16px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blg-muted, #64748b);
}

.blg-typo-hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
}

.blg-typo-field {
  display: block;
  margin: 0 0 14px;
}

.blg-typo-field > span {
  display: block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--blg-muted, #64748b);
}

.blg-typo-field select,
.blg-typo-field input[type="text"] {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 23, 42, 0.14);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8125rem;
  background: #fff;
}

.blg-typo-dimension {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(14, 23, 42, 0.06);
}

.blg-typo-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.blg-typo-field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--blg-muted, #64748b);
}

.blg-typo-dimension-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blg-typo-dimension-custom-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blg-muted, #64748b);
}

.blg-typo-preset-row.is-hidden,
.blg-typo-custom-value.is-hidden {
  display: none;
}

.blg-typo-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding: 3px;
  border-radius: 10px;
  background: rgba(14, 23, 42, 0.06);
}

.blg-typo-segment-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blg-muted, #64748b);
  cursor: pointer;
}

.blg-typo-segment-btn.is-active {
  background: #fff;
  color: var(--blg-ink, #0e172a);
  box-shadow: 0 1px 2px rgba(14, 23, 42, 0.1);
}

.blg-typo-custom-input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 23, 42, 0.14);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8125rem;
}

.blg-typo-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
}

.blg-typo-color-swatch-btn {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(14, 23, 42, 0.14);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.blg-typo-color-swatch-btn.is-empty .blg-typo-color-swatch-preview {
  background:
    linear-gradient(45deg, rgba(14, 23, 42, 0.08) 25%, transparent 25%, transparent 75%, rgba(14, 23, 42, 0.08) 75%),
    linear-gradient(45deg, rgba(14, 23, 42, 0.08) 25%, transparent 25%, transparent 75%, rgba(14, 23, 42, 0.08) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

.blg-typo-color-swatch-preview {
  display: block;
  width: 100%;
  height: 100%;
}

.blg-typo-color-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.blg-typo-color-hex {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
}

.blg-typo-color-clear {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(14, 23, 42, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/14px no-repeat;
  cursor: pointer;
}

.blg-typo-slot-preview {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(14, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.blg-typo-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  vertical-align: middle;
}

.blg-typo-badge--inherit {
  background: rgba(14, 23, 42, 0.06);
  color: var(--blg-muted, #64748b);
}

.blg-typo-badge--override {
  background: rgba(255, 131, 0, 0.15);
  color: var(--blg-ink, #0e172a);
}

.blg-typo-wcag {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.blg-typo-wcag.is-pass {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.blg-typo-wcag.is-fail {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.guidelines-themes-body--typography .guidelines-themes-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guidelines-themes-body--typography .guidelines-themes-accordion summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.45;
  flex-shrink: 0;
}

.guidelines-themes-body--typography .guidelines-themes-accordion[open] summary::after {
  transform: rotate(45deg);
}

.brand-live-guidelines.is-typo-inspect [data-blg-typo-role]:not(.is-typo-highlight),
.brand-live-guidelines.is-typo-inspect .blg-type--h1:not(.is-typo-highlight),
.brand-live-guidelines.is-typo-inspect .blg-type--h2:not(.is-typo-highlight),
.brand-live-guidelines.is-typo-inspect .blg-type--h3:not(.is-typo-highlight),
.brand-live-guidelines.is-typo-inspect .blg-type--h4:not(.is-typo-highlight),
.brand-live-guidelines.is-typo-inspect .blg-type--body:not(.is-typo-highlight) {
  opacity: 0.45;
}

.brand-live-guidelines .is-typo-highlight {
  outline: 2px solid rgba(255, 131, 0, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}
