/* HSK5_Study Modular Style Layer (Contract Section 4)
 * Defines decoupled layout helpers, architecture status badges, and responsive breakpoints. */

.arch-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body[data-api-mode="rest"] .arch-api-badge {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

body[data-api-mode="static"] .arch-api-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--border-color);
}

.arch-state-surface {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.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;
}

@media (max-width: 480px) {
  .arch-api-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .app-container {
    border-radius: var(--radius-md);
  }

  .srs-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #start-btn {
    width: 100%;
    border-radius: var(--radius-sm);
  }
}
