/* ==========================================================================
   LOCURA Brand Book — Style System
   ========================================================================== */

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Brand colors */
  --locura-blue: #0A5899;
  --locura-navy: #011423;
  --cream: #E7E2D2;
  --cream-light: #F0EDE4;
  --cream-dark: #D0CCC1;
  --text-dark: #333333;
  --text-muted: #5C574E;

  /* Semantic */
  --success: #15803D;
  --success-light: #22C55E;
  --success-bg: #DCFCE7;
  --warning: #CA8A04;
  --warning-light: #EAB308;
  --error: #DC2626;

  /* Chart palette */
  --chart-1: #0A5899;
  --chart-2: #2A9D8F;
  --chart-3: #E9C46A;
  --chart-4: #F4A261;
  --chart-5: #E76F51;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 26px;
  --radius-full: 9999px;

  /* Sidebar */
  --sidebar-width: 240px;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* --- Dark Mode --- */
.dark {
  --cream: #1a1a1a;
  --cream-light: #252525;
  --cream-dark: #333333;
  --text-dark: #E7E2D2;
  --text-muted: #B8B3A8;
  --locura-navy: #E7E2D2;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--locura-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--locura-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding: var(--space-8) 0;
  transition: transform 0.3s ease;
}

.dark .sidebar {
  background: #011423;
  color: #fff;
}

.sidebar-logo {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-8);
}

.sidebar-logo img {
  width: 140px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: var(--space-4) var(--space-6);
}

.sidebar-nav {
  list-style: none;
  flex: 1;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--locura-blue);
  text-decoration: none;
}

.sidebar-nav li a .nav-num {
  font-size: 11px;
  opacity: 0.5;
  min-width: 18px;
  font-weight: 600;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  font-family: var(--font-sans);
}

.sidebar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Hamburger (Mobile) --- */
.hamburger {
  display: none;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 200;
  background: var(--locura-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-12);
}

/* --- Section --- */
.section {
  margin-bottom: var(--space-16);
  scroll-margin-top: var(--space-8);
}

.section-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--locura-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.2;
  color: var(--locura-navy);
  margin-bottom: var(--space-6);
}

.dark .section-title {
  color: var(--text-dark);
}

.section-subtitle {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--locura-navy);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.dark .section-subtitle {
  color: var(--text-dark);
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

/* --- Hero / Identity --- */
.identity-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) 0;
}

.identity-sygnet {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-6);
}

.identity-logo {
  max-width: 320px;
  height: auto;
  margin-bottom: var(--space-4);
}

.identity-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 48px;
  color: var(--locura-navy);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.dark .identity-name {
  color: var(--text-dark);
}

.identity-company {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.identity-mission {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.tagline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--locura-blue);
  margin-bottom: var(--space-10);
}

.tagline span {
  margin: 0 var(--space-2);
}

.tagline .tagline-dot {
  opacity: 0.3;
}

/* Values cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.value-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--locura-blue);
  border-radius: var(--radius);
  color: #fff;
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--locura-navy);
  margin-bottom: var(--space-2);
}

.dark .value-card h4 {
  color: var(--text-dark);
}

.value-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 32px;
  color: var(--locura-blue);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Logo Gallery --- */
.logo-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.logo-variant-card {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.logo-variant-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.logo-variant-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  min-height: 140px;
  background: #fff;
}

.logo-variant-preview.dark-bg {
  background: var(--locura-navy);
}

.dark .logo-variant-preview.dark-bg {
  background: #011423;
}

.logo-variant-preview.checkered-bg {
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.logo-variant-preview img {
  max-height: 80px;
  width: auto;
}

.logo-variant-label {
  padding: var(--space-3) var(--space-4);
  background: var(--cream-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-variant-label a {
  font-size: 12px;
  font-weight: 600;
  color: var(--locura-blue);
}

/* Color versions grid (5 cols) */
.color-versions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.color-version-card {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.color-version-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 100px;
}

.color-version-preview.white-bg { background: #fff; }
.color-version-preview.dark-bg { background: var(--locura-navy); }
.dark .color-version-preview.dark-bg { background: #011423; }

.color-version-preview img {
  max-height: 50px;
  width: auto;
}

.color-version-name {
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  background: var(--cream-light);
  color: var(--text-muted);
  border-top: 1px solid var(--cream-dark);
}

/* Safe zone */
.safe-zone-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  background: var(--cream-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-10);
}

.safe-zone-wrapper {
  position: relative;
  display: inline-block;
}

.safe-zone-wrapper img {
  width: 100px;
  height: auto;
  display: block;
}

.safe-zone-border {
  position: absolute;
  inset: -50px;
  border: 2px dashed var(--locura-blue);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.safe-zone-label {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  font-size: 12px;
  font-weight: 600;
  color: var(--locura-blue);
  white-space: nowrap;
}

.safe-zone-arrow {
  position: absolute;
  font-size: 11px;
  color: var(--locura-blue);
  font-weight: 500;
}

.safe-zone-arrow.top {
  top: -35px;
  right: -65px;
}

.safe-zone-arrow.side {
  top: 50%;
  right: -65px;
  transform: translateY(-50%);
}

/* Min sizes */
.min-sizes-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-12);
  padding: var(--space-8);
  background: var(--cream-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-10);
}

.min-size-item {
  text-align: center;
}

.min-size-item img {
  margin: 0 auto var(--space-2);
}

.min-size-item .min-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Forbidden uses */
.forbidden-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.forbidden-item {
  position: relative;
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.forbidden-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 100px;
}

.forbidden-preview img {
  max-height: 50px;
  width: auto;
}

.forbidden-preview .stretched {
  transform: scaleX(1.5);
}

.forbidden-preview .rotated {
  transform: rotate(15deg);
}

.forbidden-preview .wrong-colors {
  filter: hue-rotate(120deg) saturate(1.5);
}

.forbidden-x {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  background: var(--error);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.forbidden-label {
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--error);
  background: rgba(220, 38, 38, 0.05);
  border-top: 1px solid var(--cream-dark);
}

/* --- Color Swatches --- */
.primary-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.color-swatch-large {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.color-swatch-block {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.color-swatch-block span {
  font-weight: 700;
  font-size: 14px;
}

.color-swatch-info {
  padding: var(--space-4);
  background: var(--cream-light);
}

.color-swatch-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-dark);
}

.color-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1) 0;
  font-size: 13px;
  color: var(--text-muted);
}

.color-value-row code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.color-value-row code:hover {
  background: var(--locura-blue);
  color: #fff;
}

/* UI tokens row */
.token-swatches {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.token-swatch {
  text-align: center;
}

.token-swatch-color {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
  margin-bottom: var(--space-2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.token-swatch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.token-swatch-value {
  font-size: 10px;
  font-family: monospace;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Semantic colors */
.semantic-colors {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.semantic-group {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}

.semantic-swatch {
  text-align: center;
}

.semantic-swatch-color {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
  margin-bottom: var(--space-1);
}

.semantic-swatch-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Neutral scale */
.neutral-scale {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  height: 60px;
  margin-bottom: var(--space-10);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.neutral-step {
  flex: 1;
  position: relative;
}

.neutral-step span {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* Color note */
.color-note {
  padding: var(--space-4) var(--space-5);
  background: var(--cream-light);
  border-left: 3px solid var(--locura-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--space-4);
}

/* --- Typography --- */
.type-specimen {
  padding: var(--space-6);
  background: var(--cream-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  overflow-x: auto;
}

.type-specimen-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.type-specimen-text {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-dark);
  word-break: break-all;
}

.type-weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.type-weight-item {
  padding: var(--space-4);
  background: var(--cream-light);
  border-radius: var(--radius-sm);
}

.type-weight-item .weight-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.type-weight-item .weight-sample {
  font-size: 20px;
  color: var(--text-dark);
}

.diacritics-demo {
  padding: var(--space-6);
  background: var(--cream-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-10);
}

.diacritics-row {
  margin-bottom: var(--space-3);
}

.diacritics-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.diacritics-text {
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

/* Type scale */
.type-scale {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.type-scale-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  padding: var(--space-4);
  background: var(--cream-light);
  border-radius: var(--radius-sm);
}

.type-scale-meta {
  min-width: 180px;
  flex-shrink: 0;
}

.type-scale-meta .ts-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--locura-blue);
}

.type-scale-meta .ts-specs {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.type-scale-sample {
  color: var(--text-dark);
  line-height: 1.3;
}

/* --- Components --- */
/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-default {
  background: var(--locura-blue);
  color: #fff;
  border-color: var(--locura-blue);
}

.btn-default:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--locura-blue);
  border-color: var(--locura-blue);
}

.btn-outline:hover {
  background: var(--locura-blue);
  color: #fff;
}

.btn-secondary {
  background: var(--cream-light);
  color: var(--text-dark);
  border-color: var(--cream-dark);
}

.btn-secondary:hover {
  background: var(--cream-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
}

.btn-ghost:hover {
  background: var(--cream-light);
}

.btn-destructive {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.btn-destructive:hover {
  opacity: 0.9;
}

.btn-link {
  background: transparent;
  color: var(--locura-blue);
  padding: 10px 4px;
  text-decoration: underline;
  border: none;
}

/* Card component */
.card-demo {
  max-width: 400px;
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-demo-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--cream-dark);
}

.card-demo-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}

.card-demo-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.card-demo-body {
  padding: var(--space-5) var(--space-6);
}

.card-demo-body p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

.card-demo-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge-default {
  background: var(--locura-blue);
  color: #fff;
}

.badge-secondary {
  background: var(--cream-dark);
  color: var(--text-dark);
}

.badge-destructive {
  background: var(--error);
  color: #fff;
}

.badge-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--cream-dark);
}

/* Input fields */
.input-demos {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 360px;
  margin-bottom: var(--space-8);
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--text-dark);
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream-light);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.input-field:focus {
  border-color: var(--locura-blue);
  box-shadow: 0 0 0 3px rgba(10, 88, 153, 0.15);
}

.input-field.input-error {
  border-color: var(--error);
}

.input-error-msg {
  font-size: 12px;
  color: var(--error);
  margin-top: 2px;
}

/* Radius scale */
.radius-scale {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.radius-demo {
  text-align: center;
}

.radius-box {
  width: 72px;
  height: 48px;
  background: var(--locura-blue);
  margin-bottom: var(--space-2);
}

.radius-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Layout & Grid --- */
.app-shell-diagram {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-10);
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 48px 1fr;
  gap: 2px;
}

.shell-sidebar {
  grid-row: 1 / -1;
  grid-column: 1;
  background: var(--locura-navy);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) 0;
}

.dark .shell-sidebar {
  background: #011423;
}

.shell-sidebar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin-bottom: var(--space-2);
}

.shell-sidebar-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  margin-bottom: var(--space-2);
}

.shell-topbar {
  grid-row: 1;
  grid-column: 2;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
}

.dark .shell-topbar {
  background: var(--cream-light);
}

.shell-topbar-text {
  width: 80px;
  height: 12px;
  background: var(--cream-dark);
  border-radius: 4px;
}

.shell-content {
  grid-row: 2;
  grid-column: 2;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.shell-card-placeholder {
  background: #fff;
  border-radius: var(--radius-sm);
  height: 80px;
  border: 1px solid var(--cream-dark);
}

.dark .shell-card-placeholder {
  background: var(--cream-light);
}

.diagram-label {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--locura-blue);
  background: var(--cream-light);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Spacing scale */
.spacing-scale {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  background: var(--cream-light);
  border-radius: var(--radius);
}

.spacing-block {
  text-align: center;
}

.spacing-visual {
  background: var(--locura-blue);
  border-radius: 3px;
  margin: 0 auto var(--space-2);
  opacity: 0.8;
}

.spacing-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Breakpoints */
.breakpoints-chart {
  margin-bottom: var(--space-10);
}

.breakpoint-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.bp-label {
  min-width: 60px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.bp-bar {
  height: 24px;
  background: var(--locura-blue);
  border-radius: 4px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-3);
}

.bp-bar span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

/* Mobile layout diagram */
.mobile-diagram {
  max-width: 240px;
  background: var(--cream-light);
  border: 2px solid var(--cream-dark);
  border-radius: 20px;
  padding: var(--space-4);
  margin-bottom: var(--space-8);
}

.mobile-status-bar {
  height: 12px;
  background: var(--cream-dark);
  border-radius: 6px;
  margin-bottom: var(--space-3);
}

.mobile-content-area {
  height: 200px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
}

.mobile-card-ph {
  background: #fff;
  border-radius: var(--radius-sm);
  height: 40px;
  border: 1px solid var(--cream-dark);
}

.dark .mobile-card-ph {
  background: var(--cream-dark);
}

.mobile-bottom-nav {
  height: 36px;
  background: var(--locura-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dark .mobile-bottom-nav {
  background: #011423;
}

.mobile-nav-dot {
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

/* --- Documents Section --- */
.pdf-mockup {
  max-width: 500px;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: var(--space-10);
  overflow: hidden;
}

.dark .pdf-mockup {
  background: var(--cream-light);
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 2px solid var(--locura-blue);
}

.pdf-header img {
  height: 30px;
}

.pdf-header-info {
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pdf-body {
  padding: var(--space-6);
}

.pdf-body-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--locura-navy);
  margin-bottom: var(--space-3);
}

.dark .pdf-body-title {
  color: var(--text-dark);
}

.pdf-body-text {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

.pdf-body-text.short {
  width: 60%;
}

.pdf-table-demo {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: 11px;
}

.pdf-table-demo th {
  background: var(--locura-blue);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-weight: 600;
}

.pdf-table-demo td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--cream-dark);
}

.pdf-table-demo tr:nth-child(even) td {
  background: var(--cream-light);
}

.pdf-footer {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--cream-dark);
  font-size: 9px;
  color: var(--text-muted);
}

/* Chart palette */
.chart-palette {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.chart-color {
  text-align: center;
}

.chart-color-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chart-color-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
}

/* --- Social Media --- */
.size-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.size-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.size-card-preview {
  background: var(--locura-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dark .size-card-preview {
  background: #011423;
}

.size-card-preview .size-rect {
  border: 2px dashed rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  margin: var(--space-4);
}

.size-card-info {
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-card-info .platform {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.size-card-info .dimensions {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-muted);
}

/* Overlay template */
.overlay-template {
  position: relative;
  max-width: 480px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--locura-navy) 0%, var(--locura-blue) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.overlay-text h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: var(--space-2);
}

.overlay-text p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* Avatar specs */
.avatar-specs {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.avatar-demo {
  text-align: center;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-circle.white-bg { background: #fff; }
.avatar-circle.navy-bg { background: var(--locura-navy); }
.dark .avatar-circle.navy-bg { background: #011423; }

.avatar-circle img {
  width: 48px;
  height: 48px;
}

.avatar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Print / Physical --- */
.bizcard-mockup {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.bizcard {
  width: 320px;
  height: 178px; /* 90:50 ratio */
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

.bizcard-front {
  background: #fff;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark .bizcard-front {
  background: var(--cream-light);
}

.bizcard-logo {
  height: 24px;
  width: auto;
}

.bizcard-person {
  margin-top: auto;
}

.bizcard-person .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--locura-navy);
}

.dark .bizcard-person .name {
  color: var(--text-dark);
}

.bizcard-person .title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.bizcard-person .contact {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.bizcard-back {
  background: var(--locura-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.dark .bizcard-back {
  background: #011423;
}

.bizcard-back img {
  width: 60px;
}

.bizcard-back .tagline-back {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.bizcard-size-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

/* Roll-up */
.rollup-mockup {
  max-width: 140px;
  background: var(--locura-navy);
  border-radius: var(--radius-sm);
  padding: var(--space-6) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 330px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: var(--space-10);
  position: relative;
}

.dark .rollup-mockup {
  background: #011423;
}

.rollup-logo {
  width: 80px;
}

.rollup-text {
  text-align: center;
}

.rollup-text h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.rollup-text p {
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.rollup-tagline {
  font-size: 7px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 600;
}

.rollup-size-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Print specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
  font-size: 14px;
}

.specs-table th {
  background: var(--locura-blue);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.specs-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-dark);
}

.specs-table tr:nth-child(even) td {
  background: var(--cream-light);
}

.specs-table code {
  font-family: monospace;
  font-size: 12px;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 3px;
}

/* --- Tone of Voice --- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.principle-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.principle-num {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--locura-blue);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.principle-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.principle-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Do / Don't table */
.do-dont-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-10);
}

.do-dont-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  font-size: 14px;
}

.do-dont-table th.do-col {
  background: var(--success);
  color: #fff;
  border-radius: var(--radius-sm) 0 0 0;
}

.do-dont-table th.dont-col {
  background: var(--error);
  color: #fff;
  border-radius: 0 var(--radius-sm) 0 0;
}

.do-dont-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--cream-dark);
  font-size: 13px;
  line-height: 1.5;
  vertical-align: top;
}

.do-dont-table td.do-cell {
  background: rgba(21, 128, 61, 0.04);
  color: var(--text-dark);
}

.do-dont-table td.dont-cell {
  background: rgba(220, 38, 38, 0.04);
  color: var(--text-dark);
}

.do-icon {
  color: var(--success);
  font-weight: 700;
  margin-right: 4px;
}

.dont-icon {
  color: var(--error);
  font-weight: 700;
  margin-right: 4px;
}

/* Formality guide */
.formality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.formality-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}

.formality-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}

.formality-card .context {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.formality-card p {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Email signature */
.email-sig-preview {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  max-width: 400px;
  margin-bottom: var(--space-4);
}

.dark .email-sig-preview {
  background: var(--cream-light);
}

.email-sig-preview .sig-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.email-sig-preview .sig-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.email-sig-preview .sig-divider {
  width: 40px;
  height: 2px;
  background: var(--locura-blue);
  margin-bottom: var(--space-3);
}

.email-sig-preview .sig-contact {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.email-sig-preview .sig-logo {
  margin-top: var(--space-3);
  height: 24px;
}

/* Code block */
.code-block {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: auto;
  white-space: pre;
  margin-bottom: var(--space-8);
}

/* --- Utility classes --- */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mt-6 { margin-top: var(--space-6); }
.mt-10 { margin-top: var(--space-10); }

.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Component note */
.component-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--cream-dark);
  margin-top: var(--space-4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: var(--space-6) var(--space-4);
    padding-top: 72px;
  }

  .identity-name {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    gap: var(--space-4);
  }

  .logo-variants-grid {
    grid-template-columns: 1fr;
  }

  .color-versions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .primary-colors {
    grid-template-columns: 1fr;
  }

  .forbidden-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-scale-item {
    flex-direction: column;
    gap: var(--space-2);
  }

  .type-scale-meta {
    min-width: auto;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .formality-grid {
    grid-template-columns: 1fr;
  }

  .size-cards {
    grid-template-columns: 1fr;
  }

  .bizcard-mockup {
    justify-content: center;
  }

  .bizcard {
    width: 280px;
    height: 156px;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .color-versions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* --- Print Styles --- */
@media print {
  .sidebar,
  .hamburger,
  .sidebar-overlay,
  .sidebar-btn,
  [data-no-print] {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    max-width: 100%;
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section {
    page-break-inside: avoid;
    margin-bottom: 24pt;
  }

  .section-title {
    color: #011423;
    font-size: 24pt;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .color-swatch-block,
  .token-swatch-color,
  .semantic-swatch-color,
  .chart-color-circle {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --- Toast / Copy feedback --- */
.copy-toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--locura-navy);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll spy active link highlight --- */
.sidebar-nav li a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-left-color: var(--locura-blue);
}

/* --- WCAG Contrast Checker --- */
.contrast-checker {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.dark .contrast-checker {
  background: var(--cream-light);
  border-color: var(--cream-dark);
}

.cc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cc-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-color-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cc-color-row input[type="color"] {
  width: 44px;
  height: 44px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
  background: transparent;
}

.cc-hex-input {
  width: 110px;
  font-family: monospace;
  font-size: 14px;
  padding: var(--space-2) var(--space-3) !important;
}

.cc-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cc-ratio-display {
  text-align: center;
}

.cc-ratio-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.cc-ratio-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--text-dark);
}

.cc-preview {
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--cream-dark);
}

.cc-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.cc-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.dark .cc-badge-row {
  background: rgba(0,0,0,0.2);
}

.cc-badge-label {
  color: var(--text-muted);
  font-weight: 500;
}

.cc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-pass {
  background: var(--success-bg);
  color: var(--success);
}

.cc-fail {
  background: #FEF2F2;
  color: var(--error);
}

.dark .cc-fail {
  background: rgba(220,38,38,0.15);
}

@media (max-width: 768px) {
  .contrast-checker {
    grid-template-columns: 1fr;
  }
}
